diff --git a/Cargo.toml b/Cargo.toml index 62deac321..ebca6071f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,6 @@ hashbrown = "0.15" hashlink = "0.10" indexmap = "2" intrusive-collections = "0.9.7" -ordermap = "1" parking_lot = "0.12" portable-atomic = "1" rustc-hash = "2" @@ -42,6 +41,8 @@ shuttle = { version = "0.8.1", optional = true } erased-serde = { version = "0.4.6", optional = true } serde = { version = "1.0.219", features = ["derive"], optional = true } +ordermap = { version = "1.0.0", optional = true } + [features] default = ["salsa_unstable", "rayon", "macros", "inventory", "accumulator"] inventory = ["dep:inventory"] diff --git a/src/update.rs b/src/update.rs index 65a10df07..126c813b3 100644 --- a/src/update.rs +++ b/src/update.rs @@ -340,6 +340,7 @@ where } } +#[cfg(feature = "ordermap")] unsafe impl Update for ordermap::OrderMap where K: Update + Eq + Hash, @@ -351,6 +352,7 @@ where } } +#[cfg(feature = "ordermap")] unsafe impl Update for ordermap::OrderSet where K: Update + Eq + Hash,