Skip to content

Commit

Permalink
use madsim-real-tokio
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <[email protected]>
  • Loading branch information
wangrunji0408 committed Apr 8, 2024
1 parent ff89182 commit 06f8491
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion madsim-tokio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ madsim = { version = "0.2.19", path = "../madsim" }
spin = "0.9"

[dependencies]
tokio = "1"
tokio = { package = "madsim-real-tokio", version = "1" }
15 changes: 11 additions & 4 deletions madsim/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "madsim"
version = "0.2.27"
version = "0.2.28"
edition = "2021"
authors = ["Runji Wang <[email protected]>"]
description = "Deterministic Simulator for distributed systems."
Expand Down Expand Up @@ -42,12 +42,15 @@ naive-timer = "0.2"
panic-message = "0.3"
rand_xoshiro = "0.6"
rustversion = "1"
tokio = { version = "1", features = ["rt", "sync"] }
tokio = { package = "madsim-real-tokio", version = "1", features = [
"rt",
"sync",
] }
toml = "0.8"

[target.'cfg(not(madsim))'.dependencies]
async-ucx = { version = "0.1", features = ["event"], optional = true }
tokio = { version = "1", features = [
tokio = { package = "madsim-real-tokio", version = "1", features = [
"rt",
"fs",
"net",
Expand All @@ -62,7 +65,11 @@ tokio-util = { version = "0.7", features = ["codec"] }
[dev-dependencies]
criterion = "0.5"
structopt = "0.3"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "io-util"] }
tokio = { package = "madsim-real-tokio", version = "1", features = [
"rt-multi-thread",
"macros",
"io-util",
] }
getrandom = "=0.2.13"

[[bench]]
Expand Down

0 comments on commit 06f8491

Please sign in to comment.