Skip to content

Commit

Permalink
Make tokio a workspace dep, and update it to 1.22.0, update mysten-si…
Browse files Browse the repository at this point in the history
…m pointer (MystenLabs#6434)

* Make tokio a workspace dep, and update it to 1.22.0

* Update mysten-sim pointer
  • Loading branch information
mystenmark authored Nov 28, 2022
1 parent 433c537 commit 04b622b
Show file tree
Hide file tree
Showing 42 changed files with 79 additions and 77 deletions.
72 changes: 36 additions & 36 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ opt-level = 1
# Dependencies that should be kept in sync through the whole workspace
[workspace.dependencies]

tokio = "1.22.0"

# Move dependencies
move-binary-format = { git = "https://github.com/move-language/move", rev = "0800fc79a98ca304bd449878f545cdcaff6f94bb" }
move-bytecode-utils = { git = "https://github.com/move-language/move", rev = "0800fc79a98ca304bd449878f545cdcaff6f94bb" }
Expand Down
2 changes: 1 addition & 1 deletion crates/component/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ publish = false
[dependencies]
async-trait = "0.1.56"
eyre = "0.6.8"
tokio = { version = "1.21.2", features = ["sync", "macros", "rt", "rt-multi-thread"] }
tokio = { workspace = true, features = ["sync", "macros", "rt", "rt-multi-thread"] }
workspace-hack.workspace = true
2 changes: 1 addition & 1 deletion crates/mysten-network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ futures = "0.3.21"
http = "0.2.8"
multiaddr = "0.16.0"
serde = { version = "1.0.140", features = ["derive"] }
tokio = { version = "1.21.2", features = ["sync", "rt", "macros"] }
tokio = { workspace = true, features = ["sync", "rt", "macros"] }
tokio-stream = { version = "0.1.11", features = ["net"] }
tonic = { version = "0.8.2", features = ["transport"] }
tonic-health = "0.7.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-benchmark/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ futures = "0.3.23"
serde = { version = "1.0.144", features = ["derive"] }
serde_json = "1.0.88"
tempfile = "3.3.0"
tokio = { version = "1.20.1", features = ["full"] }
tokio = { workspace = true, features = ["full"] }
strum = "0.24.1"
strum_macros = "0.24.3"
num_cpus = "1.13.1"
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-cluster-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ serde = { version = "1.0.144", features = ["derive"] }
futures = "0.3.24"
serde_json = "1.0.88"
tempfile = "3.3.0"
tokio = { version = "1.20.1", features = ["full"] }
tokio = { workspace = true, features = ["full"] }
jsonrpsee = { version = "0.15.1", features = ["full"] }
tracing = { version = "0.1.36", features = ["log"] }
clap = { version = "3.1.14", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ bytes = "1.3.0"
serde = { version = "1.0.144", features = ["derive"] }
serde_json = "1.0.88"
serde_with = "2.0.1"
tokio = { version = "1.20.1", features = ["full", "tracing", "test-util"] }
tokio = { workspace = true, features = ["full", "tracing", "test-util"] }
tokio-stream = { version = "0.1.8", features = ["sync", "net"] }
parking_lot = "0.12.1"
async-trait = "0.1.57"
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-cost/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition = "2021"
workspace-hack.workspace = true
sui-types = {path = "../sui-types"}
anyhow = { version = "1.0.64", features = ["backtrace"] }
tokio = { version = "1.20.1", features = ["full"] }
tokio = { workspace = true, features = ["full"] }
serde = { version = "1.0.144", features = ["derive"] }
strum = { version = "0.24", features = ["derive"] }
strum_macros = "0.24"
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-faucet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async-trait = "0.1.57"
axum = "0.5.16"
clap = { version = "3.2.17", features = ["derive"] }
thiserror = "1.0.34"
tokio = { version = "1.20.1", features = ["full"] }
tokio = { workspace = true, features = ["full"] }
tracing = "0.1.36"
serde = { version = "1.0.144", features = ["derive"] }
tower = { version = "0.4.12", features = ["util", "timeout", "load-shed", "limit"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-gateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ anyhow = { version = "1.0.64", features = ["backtrace"] }
async-trait = "0.1.57"
serde = { version = "1.0.144", features = ["derive"] }
tracing = "0.1.36"
tokio = { version = "1.20.1", features = ["full"] }
tokio = { workspace = true, features = ["full"] }
futures = "0.3.23"
prometheus = "0.13.3"
clap = { version = "3.2.17", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-indexer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ serde = { version = "1.0.144", features = ["derive"] }
serde_json = "1.0.83"
thiserror = "1.0.34"
tracing = "0.1.36"
tokio = { version = "1.20.1", features = ["full"] }
tokio = { workspace = true, features = ["full"] }

narwhal-network = { path = "../../narwhal/network" }
sui = { path = "../sui" }
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-json-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tracing = "0.1.36"
async-trait = "0.1.57"
serde = { version = "1.0.144", features = ["derive"] }
futures = "0.3.23"
tokio = { version = "1.20.1", features = ["full"] }
tokio = { workspace = true, features = ["full"] }
signature = "1.6.0"

tap = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ syn = "1"
workspace-hack.workspace = true

[target.'cfg(msim)'.dependencies]
msim-macros = { git = "https://github.com/MystenLabs/mysten-sim.git", rev = "7d2bb66f4310f23b14ea6f1df2dab0a1d84af1f2", package = "msim-macros" }
msim-macros = { git = "https://github.com/MystenLabs/mysten-sim.git", rev = "86ce6eaf4bf03288ba339b464ddb15d9a26bb001", package = "msim-macros" }
2 changes: 1 addition & 1 deletion crates/sui-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ tracing = "0.1"
scopeguard = "1"
prometheus = "0.13"
once_cell = "1"
tokio = "1"
tokio = { workspace = true }
tap = "1.0"
4 changes: 2 additions & 2 deletions crates/sui-network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sui-config = { path = "../sui-config" }

mysten-network.workspace = true
workspace-hack.workspace = true
tokio = { version = "1.17.0", features = ["full"] }
tokio = { workspace = true, features = ["full"] }
tracing = "0.1.37"
futures = "0.3.24"
multiaddr = "0.16.0"
Expand All @@ -31,4 +31,4 @@ tonic-build = { version = "0.8.2", features = [ "transport" ] }

[dev-dependencies]
telemetry-subscribers.workspace = true
tokio = { version = "1.17.0", features = ["test-util"] }
tokio = { workspace = true, features = ["test-util"] }
Loading

0 comments on commit 04b622b

Please sign in to comment.