diff --git a/madsim/Cargo.toml b/madsim/Cargo.toml index b3e2daf..6567b67 100644 --- a/madsim/Cargo.toml +++ b/madsim/Cargo.toml @@ -32,8 +32,8 @@ tracing = "0.1" tracing-subscriber = "0.3" [target.'cfg(madsim)'.dependencies] -ahash = "0.7" -async-channel = "1.6" +ahash = "0.8" +async-channel = "2" async-stream = "0.3" async-task = "4.4" downcast-rs = "1.2" @@ -43,7 +43,7 @@ panic-message = "0.3" rand_xoshiro = "0.6" rustversion = "1" tokio = { version = "1", features = ["rt", "sync"] } -toml = "0.7" +toml = "0.8" [target.'cfg(not(madsim))'.dependencies] async-ucx = { version = "0.1", features = ["event"], optional = true } @@ -60,7 +60,7 @@ tokio-util = { version = "0.7", features = ["codec"] } # mad_rpc = { git = "https://github.com/madsys-dev/madrpc", rev = "2be4b02", optional = true } [dev-dependencies] -criterion = "0.4" +criterion = "0.5" structopt = "0.3" tokio = { version = "1", features = ["rt-multi-thread", "macros"] } diff --git a/madsim/src/sim/config.rs b/madsim/src/sim/config.rs index 509582f..89b20f4 100644 --- a/madsim/src/sim/config.rs +++ b/madsim/src/sim/config.rs @@ -25,7 +25,7 @@ pub struct Config { impl Config { /// Returns the hash value of this config. pub fn hash(&self) -> u64 { - let mut hasher = AHasher::new_with_keys(0, 0); + let mut hasher = AHasher::default(); Hash::hash(self, &mut hasher); hasher.finish() }