Skip to content

Commit f2b0812

Browse files
authored
Merge pull request #32 from reactive-graph/feature/RUSTSEC-2025-0057
Replace fxhash with rustc-hash (Fixes RUSTSEC-2025-0057)
2 parents d8878ea + eef440a commit f2b0812

8 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎springtime-di/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ default = ["threadsafe", "derive"]
2121
[dependencies]
2222
derive_more = { version = "2.0.1", features = ["debug"] }
2323
futures = { version = "0.3.29", optional = true }
24-
fxhash = "0.2.1"
2524
inventory = "0.3.13"
2625
itertools = "0.14.0"
26+
rustc-hash = "2.1.1"
2727
springtime-di-derive = { path = "../springtime-di-derive", version = "0.3", optional = true, default-features = false }
2828
thiserror = "2.0.3"
2929
tracing = "0.1.40"

‎springtime-di/src/component_registry.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ use crate::instance_provider::{
2020
use derive_more::Debug;
2121
#[cfg(feature = "async")]
2222
use futures::future::BoxFuture;
23-
use fxhash::{FxHashMap, FxHashSet};
2423
use itertools::Itertools;
2524
#[cfg(test)]
2625
use mockall::automock;
26+
use rustc_hash::{FxHashMap, FxHashSet};
2727
use std::any::{type_name, TypeId};
2828
use thiserror::Error;
2929

@@ -483,7 +483,7 @@ mod registry {
483483
use crate::component_registry::{
484484
ComponentAliasMetadata, ComponentDefinition, ComponentMetadata,
485485
};
486-
use fxhash::{FxHashMap, FxHashSet};
486+
use rustc_hash::{FxHashMap, FxHashSet};
487487
use std::any::TypeId;
488488
use tracing::debug;
489489

‎springtime-di/src/factory.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ use crate::scope::{
1616
use futures::future::BoxFuture;
1717
#[cfg(feature = "async")]
1818
use futures::FutureExt;
19-
use fxhash::{FxHashMap, FxHashSet};
2019
#[cfg(not(feature = "async"))]
2120
use itertools::Itertools;
21+
use rustc_hash::{FxHashMap, FxHashSet};
2222
use std::any::TypeId;
2323
use tracing::debug;
2424

‎springtime-di/src/scope.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
1212
use crate::component_registry::ComponentDefinition;
1313
use crate::instance_provider::ComponentInstanceAnyPtr;
14-
use fxhash::FxHashMap;
1514
#[cfg(test)]
1615
use mockall::automock;
16+
use rustc_hash::FxHashMap;
1717
use std::any::TypeId;
1818

1919
#[cfg(not(feature = "threadsafe"))]

‎springtime-web-axum/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ axum = "0.8.1"
2020
config = "0.15.5"
2121
downcast = "0.11.0"
2222
futures = "0.3.31"
23-
fxhash = "0.2.1"
23+
rustc-hash = "2.1.1"
2424
serde = "1.0.217"
2525
springtime = { version = "1.0.0", path = "../springtime" }
2626
springtime-di = { version = "1.0.0", path = "../springtime-di", features = ["async"] }

‎springtime-web-axum/src/config.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! by values from `springtime.json` file under the `web` key.
66
77
use config::{Config, File};
8-
use fxhash::FxHashMap;
8+
use rustc_hash::FxHashMap;
99
use serde::Deserialize;
1010
use springtime::config::CONFIG_FILE;
1111
use springtime::future::{BoxFuture, FutureExt};

‎springtime-web-axum/src/controller.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
44
use axum::Router;
55
use downcast::{downcast_sync, AnySync};
6-
use fxhash::FxHashSet;
76
#[cfg(test)]
87
use mockall::automock;
8+
use rustc_hash::FxHashSet;
99
use springtime_di::injectable;
1010
use springtime_di::instance_provider::{ComponentInstancePtr, ErrorPtr};
1111

‎springtime-web-axum/src/router.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ mod tests {
7676
use crate::controller::MockController;
7777
use crate::router::{ControllerRouterBootstrap, MockRouterConfigure, RouterBootstrap};
7878
use axum::Router;
79-
use fxhash::FxHashSet;
79+
use rustc_hash::FxHashSet;
8080
use springtime_di::instance_provider::ComponentInstancePtr;
8181

8282
#[test]

0 commit comments

Comments
 (0)