diff --git a/Cargo.toml b/Cargo.toml index c3839499667..5184c7691e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -69,6 +69,7 @@ backtrace = "0.3" criterion = { version = "0.5.1", default-features = false } document-features = " 0.2.8" glow = "0.13" +image = { version = "0.24", default-features = false } log = { version = "0.4", features = ["std"] } nohash-hasher = "0.2" parking_lot = "0.12" diff --git a/crates/eframe/Cargo.toml b/crates/eframe/Cargo.toml index da1aea6badf..4d9e61bfb9f 100644 --- a/crates/eframe/Cargo.toml +++ b/crates/eframe/Cargo.toml @@ -152,9 +152,7 @@ egui-winit = { workspace = true, default-features = false, features = [ "clipboard", "links", ] } -image = { version = "0.24", default-features = false, features = [ - "png", -] } # Needed for app icon +image = { workspace = true, features = ["png"] } # Needed for app icon winit = { workspace = true, default-features = false, features = ["rwh_06"] } # optional native: diff --git a/crates/egui_demo_app/Cargo.toml b/crates/egui_demo_app/Cargo.toml index b928702e08b..7939e74cd25 100644 --- a/crates/egui_demo_app/Cargo.toml +++ b/crates/egui_demo_app/Cargo.toml @@ -62,10 +62,7 @@ wgpu = { workspace = true, features = ["webgpu", "webgl"], optional = true } # feature "http": ehttp = { version = "0.5", optional = true } -image = { version = "0.24", optional = true, default-features = false, features = [ - "jpeg", - "png", -] } +image = { workspace = true, optional = true, features = ["jpeg", "png"] } poll-promise = { version = "0.3", optional = true, default-features = false } # feature "persistence": diff --git a/crates/egui_extras/Cargo.toml b/crates/egui_extras/Cargo.toml index a0829180924..8c08a41238e 100644 --- a/crates/egui_extras/Cargo.toml +++ b/crates/egui_extras/Cargo.toml @@ -42,8 +42,7 @@ http = ["dep:ehttp"] ## ## You also need to ALSO opt-in to the image formats you want to support, like so: ## ```toml -## image = { version = "0.24", features = ["jpeg", "png"] } # Add the types you want support for - +## image = { version = "*", features = ["jpeg", "png"] } # Add the types you want support for ## ``` image = ["dep:image"] @@ -79,7 +78,7 @@ chrono = { version = "0.4", optional = true, default-features = false, features ## Enable this when generating docs. document-features = { workspace = true, optional = true } -image = { version = "0.24", optional = true, default-features = false } +image = { workspace = true, optional = true } # file feature mime_guess2 = { version = "2", optional = true, default-features = false } diff --git a/examples/images/Cargo.toml b/examples/images/Cargo.toml index b6cb142f723..6e4740841f8 100644 --- a/examples/images/Cargo.toml +++ b/examples/images/Cargo.toml @@ -18,7 +18,4 @@ env_logger = { version = "0.10", default-features = false, features = [ "auto-color", "humantime", ] } -image = { version = "0.24", default-features = false, features = [ - "jpeg", - "png", -] } +image = { workspace = true, features = ["jpeg", "png"] } diff --git a/examples/save_plot/Cargo.toml b/examples/save_plot/Cargo.toml index cb31594343c..b0131067187 100644 --- a/examples/save_plot/Cargo.toml +++ b/examples/save_plot/Cargo.toml @@ -13,7 +13,7 @@ eframe = { workspace = true, features = [ "__screenshot", # __screenshot is so we can dump a screenshot using EFRAME_SCREENSHOT_TO ] } egui_plot.workspace = true -image = { version = "0.24", default-features = false, features = ["png"] } +image = { workspace = true, features = ["png"] } rfd = "0.13.0" env_logger = { version = "0.10", default-features = false, features = [ "auto-color", diff --git a/examples/screenshot/Cargo.toml b/examples/screenshot/Cargo.toml index 5c7bbbeec42..1da2e46cb0d 100644 --- a/examples/screenshot/Cargo.toml +++ b/examples/screenshot/Cargo.toml @@ -21,4 +21,4 @@ env_logger = { version = "0.10", default-features = false, features = [ "auto-color", "humantime", ] } -image = { version = "0.24", default-features = false, features = ["png"] } +image = { workspace = true, features = ["png"] }