diff --git a/Cargo.toml b/Cargo.toml index 82021036..46b5ab9b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,6 +27,7 @@ readme = "README.md" rust-version = "1.76.0" # update CI if changed [workspace.dependencies] +tokio = "1.37" stability = "0.2.0" metrics = "0.17.1" dashmap = "6.0.1" diff --git a/benches/Cargo.toml b/benches/Cargo.toml index f3700de1..34fd9325 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -15,8 +15,8 @@ elfo = { path = "../elfo" } elfo-utils = { version = "0.2.5", path = "../elfo-utils" } metrics.workspace = true +tokio = { workspace = true, features = ["rt-multi-thread"] } criterion = "0.5.1" -tokio = { version = "1.36.0", features = ["rt-multi-thread"] } futures = "0.3" derive_more = "0.99.17" mimalloc = { version = "0.1.39", default-features = false } diff --git a/elfo-configurer/Cargo.toml b/elfo-configurer/Cargo.toml index b44a6370..449e30fd 100644 --- a/elfo-configurer/Cargo.toml +++ b/elfo-configurer/Cargo.toml @@ -18,7 +18,7 @@ workspace = true elfo-core = { version = "0.2.0-alpha.15", path = "../elfo-core", features = ["unstable"] } toml.workspace = true -tokio = { version = "1", features = ["fs"] } +tokio = { workspace = true, features = ["fs"] } serde = { version = "1.0.120", features = ["derive", "rc"] } serde-value = "0.7.0" futures = "0.3.12" diff --git a/elfo-core/Cargo.toml b/elfo-core/Cargo.toml index f4dc6a1b..331b6cc8 100644 --- a/elfo-core/Cargo.toml +++ b/elfo-core/Cargo.toml @@ -27,7 +27,7 @@ elfo-utils = { version = "0.2.5", path = "../elfo-utils" } stability.workspace = true metrics.workspace = true dashmap.workspace = true -tokio = { version = "1.37", features = ["rt", "sync", "time", "signal", "macros"] } +tokio = { workspace = true, features = ["rt", "sync", "time", "signal", "macros"] } idr-ebr = "0.2" futures-intrusive = "0.5" cordyceps = "0.3.2" @@ -59,8 +59,8 @@ humantime-serde = "1" [dev-dependencies] elfo-utils = { version = "0.2.5", path = "../elfo-utils", features = ["test-util"] } +tokio = { workspace = true, features = ["full"] } anyhow = "1.0.40" -tokio = { version = "1", features = ["full"] } proptest = "1.4.0" [package.metadata.docs.rs] diff --git a/elfo-dumper/Cargo.toml b/elfo-dumper/Cargo.toml index 7ec63fbd..b4e54b2b 100644 --- a/elfo-dumper/Cargo.toml +++ b/elfo-dumper/Cargo.toml @@ -20,7 +20,7 @@ elfo-utils = { version = "0.2.5", path = "../elfo-utils" } metrics.workspace = true bytesize.workspace = true -tokio = { version = "1", features = ["fs", "io-util", "sync"] } +tokio = { workspace = true, features = ["fs", "io-util", "sync"] } serde = { version = "1.0.120", features = ["derive"] } tracing = "0.1.25" fxhash = "0.2.1" diff --git a/elfo-logger/Cargo.toml b/elfo-logger/Cargo.toml index 541aecad..2da9a1dd 100644 --- a/elfo-logger/Cargo.toml +++ b/elfo-logger/Cargo.toml @@ -23,11 +23,11 @@ elfo-utils = { version = "0.2.5", path = "../elfo-utils" } metrics.workspace = true dashmap.workspace = true +tokio = { workspace = true, features = ["macros", "fs", "io-util"] } arc-swap = "1.2.0" once_cell = { version = "1.8.0", features = ["parking_lot"] } derive_more = "0.99.11" futures-intrusive = "0.5" -tokio = { version = "1.5", features = ["macros", "fs", "io-util"] } atty = "0.2.14" serde = { version = "1.0.120", features = ["derive"] } parking_lot = "0.12" diff --git a/elfo-network/Cargo.toml b/elfo-network/Cargo.toml index e1494e19..d5d0ccf0 100644 --- a/elfo-network/Cargo.toml +++ b/elfo-network/Cargo.toml @@ -25,7 +25,7 @@ static_assertions = "1.1.0" eyre = "0.6.8" fxhash = "0.2.1" futures = "0.3.21" -tokio = { version = "1.19.2", features = ["net", "io-util"] } +tokio = { workspace = true, features = ["net", "io-util"] } tokio-util = "0.7" tracing = "0.1.25" parking_lot = "0.12" diff --git a/elfo-pinger/Cargo.toml b/elfo-pinger/Cargo.toml index 33d7838f..6133e97f 100644 --- a/elfo-pinger/Cargo.toml +++ b/elfo-pinger/Cargo.toml @@ -18,7 +18,7 @@ workspace = true elfo-core = { version = "0.2.0-alpha.15", path = "../elfo-core", features = ["unstable"] } elfo-utils = { version = "0.2.5", path = "../elfo-utils" } -tokio = { version = "1", features = ["time"] } +tokio = { workspace = true, features = ["time"] } serde = { version = "1.0.120", features = ["derive"] } humantime-serde = "1" tracing = "0.1.25" diff --git a/elfo-telemeter/Cargo.toml b/elfo-telemeter/Cargo.toml index 2ed4268c..74df2ee2 100644 --- a/elfo-telemeter/Cargo.toml +++ b/elfo-telemeter/Cargo.toml @@ -26,7 +26,7 @@ elfo-core = { version = "0.2.0-alpha.15", path = "../elfo-core", features = ["un stability.workspace = true metrics.workspace = true -tokio = "1" +tokio.workspace = true hyper = { version = "1.0.1", features = ["server", "http1"] } hyper-util = { version = "0.1.3", features = ["tokio"] } http-body-util = "0.1" @@ -44,7 +44,7 @@ flate2 = "1" [dev-dependencies] elfo-configurer = { path = "../elfo-configurer" } +tokio = { workspace = true, features = ["rt-multi-thread"] } toml.workspace = true criterion = "0.5.1" proptest = "1.4" -tokio = { version = "1.36.0", features = ["rt-multi-thread"] } diff --git a/elfo-test/Cargo.toml b/elfo-test/Cargo.toml index 4ef00a8e..18aa0448 100644 --- a/elfo-test/Cargo.toml +++ b/elfo-test/Cargo.toml @@ -21,8 +21,8 @@ unstable = [] elfo-core = { version = "0.2.0-alpha.15", path = "../elfo-core", features = ["test-util"] } elfo-configurer = { version = "0.2.0-alpha.15", path = "../elfo-configurer" } +tokio.workspace = true stability.workspace = true -tokio = "1" serde = { version = "1.0.120", features = ["derive", "rc"] } serde-value = "0.7.0" futures-intrusive = "0.5" diff --git a/elfo/Cargo.toml b/elfo/Cargo.toml index dd7e739c..3d06638c 100644 --- a/elfo/Cargo.toml +++ b/elfo/Cargo.toml @@ -43,10 +43,10 @@ elfo-test = { version = "0.2.0-alpha.15", path = "../elfo-test" } metrics.workspace = true toml.workspace = true +tokio = { workspace = true, features = ["full"] } anyhow = "1.0.38" futures = "0.3.12" derive_more = "0.99.11" -tokio = { version = "1", features = ["full"] } tracing = "0.1.25" tracing-subscriber = "0.3" serde = { version = "1.0.120", features = ["derive"] } diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 6dd5dfa0..34abab56 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -17,11 +17,11 @@ unstable = ["elfo/unstable", "elfo-telemeter/unstable"] elfo = { path = "../elfo", features = ["full", "network", "test-util"] } elfo-telemeter = { path = "../elfo-telemeter" } # for `AllocatorStats` +tokio = { workspace = true, features = ["full"] } metrics.workspace = true toml.workspace = true anyhow = "1.0.40" futures = "0.3.12" -tokio = { version = "1", features = ["full"] } serde = { version = "1.0.120", features = ["derive"] } derive_more = "0.99.11" humantime-serde = "1"