1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Use more workspace dependencies (#7596)

This commit is contained in:
Emil Ernerfeldt
2025-10-07 15:07:16 +02:00
committed by GitHub
parent 7fc80d8623
commit 843ceea90c
36 changed files with 92 additions and 154 deletions

View File

@@ -39,10 +39,10 @@ emath.workspace = true
bytemuck = { workspace = true, optional = true, features = ["derive"] }
## [`cint`](https://docs.rs/cint) enables interoperability with other color libraries.
cint = { version = "0.3.1", optional = true }
cint = { workspace = true, optional = true }
## Enable the [`hex_color`] macro.
color-hex = { version = "0.2.0", optional = true }
color-hex = { workspace = true, optional = true }
## Enable this when generating docs.
document-features = { workspace = true, optional = true }

View File

@@ -74,14 +74,11 @@ bytemuck = { workspace = true, optional = true }
document-features = { workspace = true, optional = true }
serde = { workspace = true, optional = true }
webbrowser = { version = "1.0.0", optional = true }
webbrowser = { workspace = true, optional = true }
[target.'cfg(target_os = "ios")'.dependencies]
objc2 = { workspace = true }
objc2-foundation = { workspace = true, features = [
"std",
"NSThread",
] }
objc2.workspace = true
objc2-foundation = { workspace = true, features = ["std", "NSThread"] }
objc2-ui-kit = { workspace = true, features = [
"std",
"UIApplication",
@@ -95,14 +92,14 @@ objc2-ui-kit = { workspace = true, features = [
] }
[target.'cfg(any(target_os="linux", target_os="dragonfly", target_os="freebsd", target_os="netbsd", target_os="openbsd"))'.dependencies]
smithay-clipboard = { version = "0.7.2", optional = true }
smithay-clipboard = { workspace = true, optional = true }
# The wayland-cursor normally selected doesn't properly enable all the features it uses
# and thus doesn't compile as it is used in egui-winit. This is fixed upstream, so force
# a slightly newer version. Remove this when winit upgrades past this version.
wayland-cursor = { version = "0.31.1", default-features = false, optional = true }
wayland-cursor = { workspace = true, optional = true }
[target.'cfg(not(target_os = "android"))'.dependencies]
arboard = { version = "3.3", optional = true, default-features = false, features = [
"image-data",
arboard = { workspace = true, optional = true, features = [
"image-data",
] }

View File

@@ -47,10 +47,7 @@ wayland = ["eframe/wayland"]
x11 = ["eframe/x11"]
[dependencies]
chrono = { version = "0.4", default-features = false, features = [
"js-sys",
"wasmbind",
] }
chrono = { workspace = true, features = ["js-sys", "wasmbind"] }
eframe = { workspace = true, default-features = false, features = [
"web_screen_reader",
] }
@@ -80,8 +77,8 @@ wgpu = { workspace = true, features = [
# feature "http":
ehttp = { version = "0.5", optional = true }
poll-promise = { version = "0.3", optional = true, default-features = false }
ehttp = { workspace = true, optional = true }
poll-promise = { workspace = true, optional = true }
# feature "persistence":
serde = { workspace = true, optional = true }
@@ -89,16 +86,13 @@ serde = { workspace = true, optional = true }
# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger = { version = "0.10", default-features = false, features = [
"auto-color",
"humantime",
] }
env_logger = { workspace = true, features = ["auto-color", "humantime"] }
mimalloc.workspace = true
rfd = { version = "0.15.3", optional = true }
rfd = { workspace = true, optional = true }
# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "=0.2.100"
wasm-bindgen.workspace = true
wasm-bindgen-futures.workspace = true
web-sys.workspace = true

View File

@@ -45,10 +45,10 @@ syntect = ["egui_extras/syntect"]
egui = { workspace = true, default-features = false, features = ["color-hex"] }
egui_extras = { workspace = true, features = ["image", "svg"] }
unicode_names2 = { version = "0.6.0", default-features = false } # this old version has fewer dependencies
unicode_names2.workspace = true # this old version has fewer dependencies
#! ### Optional dependencies
chrono = { version = "0.4", optional = true, features = ["js-sys", "wasmbind"] }
chrono = { workspace = true, optional = true, features = ["js-sys", "wasmbind"] }
## Enable this when generating docs.
document-features = { workspace = true, optional = true }
serde = { workspace = true, optional = true }
@@ -61,7 +61,7 @@ egui_extras = { workspace = true, features = ["image", "svg"] }
egui_kittest = { workspace = true, features = ["wgpu", "snapshot"] }
image = { workspace = true, features = ["png"] }
mimalloc.workspace = true # for benchmarks
rand = "0.9"
rand.workspace = true
[[bench]]
name = "benchmark"

View File

@@ -73,7 +73,7 @@ syntect = ["dep:syntect"]
egui = { workspace = true, default-features = false }
ahash.workspace = true
enum-map = "2"
enum-map.workspace = true
log.workspace = true
profiling.workspace = true
@@ -83,7 +83,7 @@ profiling.workspace = true
serde = { workspace = true, optional = true }
# Date operations needed for datepicker widget
chrono = { version = "0.4", optional = true, default-features = false, features = [
chrono = { workspace = true, optional = true, features = [
"clock",
"js-sys",
"std",
@@ -96,15 +96,13 @@ document-features = { workspace = true, optional = true }
image = { workspace = true, optional = true }
# file feature
mime_guess2 = { version = "2", optional = true, default-features = false }
mime_guess2 = { workspace = true, optional = true }
syntect = { version = "5", optional = true, default-features = false, features = [
"default-fancy",
] }
# syntax highlighting
syntect = { workspace = true, optional = true, features = ["default-fancy"] }
# svg feature
resvg = { version = "0.45", optional = true, default-features = false }
resvg = { workspace = true, optional = true }
# http feature
ehttp = { version = "0.5", optional = true, default-features = false }
ehttp = { workspace = true, optional = true }

View File

@@ -56,7 +56,7 @@ egui-winit = { workspace = true, optional = true, default-features = false }
bytemuck.workspace = true
glow.workspace = true
log.workspace = true
memoffset = "0.9"
memoffset.workspace = true
profiling.workspace = true
#! ### Optional dependencies

View File

@@ -37,7 +37,7 @@ bytemuck = { workspace = true, optional = true, features = ["derive"] }
document-features = { workspace = true, optional = true }
## [`mint`](https://docs.rs/mint) enables interoperability with other math libraries such as [`glam`](https://docs.rs/glam) and [`nalgebra`](https://docs.rs/nalgebra).
mint = { version = "0.5.6", optional = true }
mint = { workspace = true, optional = true }
## Allow serialization using [`serde`](https://docs.rs/serde).
serde = { workspace = true, optional = true }

View File

@@ -66,7 +66,7 @@ _override_unity = []
emath.workspace = true
ecolor.workspace = true
ab_glyph = "0.2.11"
ab_glyph.workspace = true
ahash.workspace = true
log.workspace = true
nohash-hasher.workspace = true
@@ -79,7 +79,7 @@ bytemuck = { workspace = true, optional = true, features = ["derive"] }
## Enable this when generating docs.
document-features = { workspace = true, optional = true }
rayon = { version = "1.7", optional = true }
rayon = { workspace = true, optional = true }
## Allow serialization using [`serde`](https://docs.rs/serde) .
serde = { workspace = true, optional = true, features = ["derive", "rc"] }