From 4947b191e46dfe918ab25eebd1a728e0b675240f Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 4 Sep 2025 09:54:59 +0200 Subject: [PATCH] Make more dependencies workspace dependencies (#7495) --- Cargo.toml | 7 +++++++ crates/eframe/Cargo.toml | 16 ++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 45754c2f..33c91a2c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,17 +79,23 @@ bitflags = "2.6" bytemuck = "1.23.2" criterion = { version = "0.7", default-features = false } dify = { version = "0.7", default-features = false } +directories = "6" document-features = "0.2.10" glow = "0.16" glutin = { version = "0.32.0", default-features = false } glutin-winit = { version = "0.5.0", default-features = false } home = "0.5.9" image = { version = "0.25", default-features = false } +js-sys = "0.3" kittest = { version = "0.2.0" } log = { version = "0.4", features = ["std"] } mimalloc = "0.1.46" nohash-hasher = "0.2" +objc2 = "0.5.1" +objc2-app-kit = { version = "0.2.0", default-features = false } +objc2-foundation = { version = "0.2.0", default-features = false } parking_lot = "0.12" +percent-encoding = "2.1" pollster = "0.4" profiling = { version = "1.0.16", default-features = false } puffin = "0.19" @@ -99,6 +105,7 @@ ron = "0.11" serde = { version = "1", features = ["derive"] } similar-asserts = "1.4.2" smallvec = "1" +static_assertions = "1.1.0" thiserror = "1.0.37" type-map = "0.5.0" unicode-segmentation = "1.12.0" diff --git a/crates/eframe/Cargo.toml b/crates/eframe/Cargo.toml index ab9871f0..b37a1989 100644 --- a/crates/eframe/Cargo.toml +++ b/crates/eframe/Cargo.toml @@ -42,7 +42,7 @@ default = [ "egui-wgpu?/fragile-send-sync-non-atomic-wasm", # Let's enable some backends so that users can use `eframe` out-of-the-box # without having to explicitly opt-in to backends - "egui-wgpu?/default" + "egui-wgpu?/default", ] ## Enable platform accessibility API implementations through [AccessKit](https://accesskit.dev/). @@ -135,7 +135,7 @@ log.workspace = true parking_lot.workspace = true profiling.workspace = true raw-window-handle.workspace = true -static_assertions = "1.1.0" +static_assertions.workspace = true web-time.workspace = true # Optional dependencies @@ -174,14 +174,14 @@ wgpu = { workspace = true, optional = true } # mac: [target.'cfg(any(target_os = "macos"))'.dependencies] -objc2 = "0.5.1" -objc2-foundation = { version = "0.2.0", default-features = false, features = [ +objc2.workspace = true +objc2-foundation = { workspace = true, default-features = false, features = [ "std", "block2", "NSData", "NSString", ] } -objc2-app-kit = { version = "0.2.0", default-features = false, features = [ +objc2-app-kit = { workspace = true, default-features = false, features = [ "std", "NSApplication", "NSImage", @@ -205,8 +205,8 @@ windows-sys = { workspace = true, features = [ [target.'cfg(target_arch = "wasm32")'.dependencies] bytemuck.workspace = true image = { workspace = true, features = ["png"] } # For copying images -js-sys = "0.3" -percent-encoding = "2.1" +js-sys.workspace = true +percent-encoding.workspace = true wasm-bindgen.workspace = true wasm-bindgen-futures.workspace = true web-sys = { workspace = true, features = [ @@ -271,4 +271,4 @@ wgpu = { workspace = true, optional = true } # Native dev dependencies for testing [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] -directories = "6" +directories.workspace = true