From cc3a09187d4eeb24019e7272946388a56407a25f Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Mon, 26 Aug 2024 10:41:16 +0200 Subject: [PATCH] Deprecate `ahash` re-exports (#4979) * Closes * [x] I have followed the instructions in the PR template Regarding the statement in #3482, https://docs.rs/egui/latest/egui/layers/struct.GraphicLayers.html#method.drain accepts a HashMap, but not sure if that is enough to keep the re-export. --- crates/egui/src/lib.rs | 1 + crates/egui_extras/src/loaders/gif_loader.rs | 2 +- crates/epaint/src/lib.rs | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/egui/src/lib.rs b/crates/egui/src/lib.rs index 9dc8dea61..1df03f0ba 100644 --- a/crates/egui/src/lib.rs +++ b/crates/egui/src/lib.rs @@ -415,6 +415,7 @@ mod callstack; #[cfg(feature = "accesskit")] pub use accesskit; +#[deprecated = "Use the ahash crate directly."] pub use ahash; pub use epaint; diff --git a/crates/egui_extras/src/loaders/gif_loader.rs b/crates/egui_extras/src/loaders/gif_loader.rs index 4f8a120e8..1c2013515 100644 --- a/crates/egui_extras/src/loaders/gif_loader.rs +++ b/crates/egui_extras/src/loaders/gif_loader.rs @@ -1,5 +1,5 @@ +use ahash::HashMap; use egui::{ - ahash::HashMap, decode_gif_uri, has_gif_magic_header, load::{BytesPoll, ImageLoadResult, ImageLoader, ImagePoll, LoadError, SizeHint}, mutex::Mutex, diff --git a/crates/epaint/src/lib.rs b/crates/epaint/src/lib.rs index a8fba51ea..25c445e15 100644 --- a/crates/epaint/src/lib.rs +++ b/crates/epaint/src/lib.rs @@ -67,7 +67,9 @@ pub use tessellator::tessellate_shapes; pub use ecolor::{Color32, Hsva, HsvaGamma, Rgba}; pub use emath::{pos2, vec2, Pos2, Rect, Vec2}; +#[deprecated = "Use the ahash crate directly."] pub use ahash; + pub use ecolor; pub use emath;