Skip to content

Commit

Permalink
Clean up dependencies (#714)
Browse files Browse the repository at this point in the history
* chore(deps): remove uneeded dpeendencies

See https://github.com/MystenLabs/narwhal/runs/7700656786?check_suite_focus=true

* chore(deps): sort dependencies
  • Loading branch information
huitseeker authored Aug 7, 2022
1 parent 23a66ec commit 92e7058
Show file tree
Hide file tree
Showing 12 changed files with 66 additions and 74 deletions.
6 changes: 3 additions & 3 deletions narwhal/config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ authors = ["Mysten Labs <[email protected]>"]
edition = "2021"

[dependencies]
multiaddr = "0.14.0"
serde = { version = "1.0.142", features = ["derive"] }
serde_json = "1.0.83"
thiserror = "1.0.32"
tracing = "0.1.36"
multiaddr = "0.14.0"
arc-swap = { version = "1.5.1", features = ["serde"] }

crypto = { path = "../crypto" }
arc-swap = { version = "1.5.1", features = ["serde"] }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
Expand All @@ -22,4 +22,4 @@ rand = "0.8.5"
tempfile = "3.3.0"
tracing-test = "0.2.3"

test_utils = { path = "../test_utils"}
test_utils = { path = "../test_utils" }
7 changes: 3 additions & 4 deletions narwhal/consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ rand = { version = "0.8.5", optional = true }
# deactivation of bzip2 due to https://github.com/rust-rocksdb/rust-rocksdb/issues/609
rocksdb = { version = "0.18.0", features = ["snappy", "lz4", "zstd", "zlib"], default-features = false }
serde = { version = "1.0.142", features = ["derive"] }
serde_bytes = "0.11.7"
store = { git = "https://github.com/mystenlabs/mysten-infra.git", package = "typed-store", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }
thiserror = "1.0.32"
tokio = { version = "1.20.1", features = ["sync"] }
Expand All @@ -24,17 +23,17 @@ tracing = "0.1.36"
config = { path = "../config" }
crypto = { path = "../crypto" }
dag = { path = "../dag" }
types = { path = "../types" }
prometheus = "0.13.1"
types = { path = "../types" }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
futures = "0.3.21"
bincode = "1.3.3"
criterion = "0.3.6"
ed25519-dalek = { version = "1.0.1", features = ["batch", "serde"] }
test_utils = { path = "../test_utils"}
futures = "0.3.21"
indexmap = { version = "1.9.1", features = ["serde"] }
test_utils = { path = "../test_utils" }

[target.'cfg(unix)'.dev-dependencies]
pprof = { version = "0.10.0", features = ["criterion", "flamegraph"] }
Expand Down
17 changes: 8 additions & 9 deletions narwhal/crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ publish = false

[dependencies]
anyhow = { version = "1.0.59", features = ["backtrace"] }
ark-bls12-377 = { version = "0.3.0", features = ["std"], optional = true }
base64ct = { version = "1.5.1", features = ["alloc"] }
ed25519-consensus = { version = "2.0.1", features = ["serde"] }
eyre = "0.6.8"
hex = "0.4.3"
hkdf = { version = "0.12.3", features = ["std"] }
rand = { version = "0.8.5", features = ["std"] }
rust_secp256k1 = { version = "0.24.0", package = "secp256k1", features = ["recovery", "rand-std", "bitcoin_hashes", "global-context"] }
serde = { version = "1.0.142", features = ["derive"] }
zeroize = "1.5.7"
serde_with = "2.0.0"
signature = "1.5.0"
tokio = { version = "1.20.1", features = ["sync", "rt", "macros"] }
ark-bls12-377 = { version = "0.3.0", features = ["std"], optional = true }
hkdf = { version = "0.12.3", features = ["std"] }
serde_with = "2.0.0"
rust_secp256k1 = { version = "0.24.0", package = "secp256k1", features = ["recovery", "rand-std", "bitcoin_hashes", "global-context"] }
zeroize = "1.5.7"

# TODO: switch to https://github.com/celo-org/celo-bls-snark-rs
# when https://github.com/celo-org/celo-bls-snark-rs/issues/228 is solved
Expand All @@ -32,10 +32,9 @@ ark-serialize = { version = "0.3.0", features = ["std"], optional = true }
ark-std = { version = "0.3.0", features = ["std"], optional = true }
blake2 = "0.9"
blst = "0.3.10"
digest = "0.10.3"
once_cell = "1.13.0"
readonly = "0.2.2"
serde_bytes = "0.11.7"
digest = "0.10.3"
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[[bench]]
Expand All @@ -51,9 +50,9 @@ copy_key = []
[dev-dependencies]
bincode = "1.3.3"
criterion = "0.3.6"
sha3 = "0.10.2"
hex-literal = "0.3.4"
k256 = { version = "0.11.3", features = ["ecdsa", "sha256", "keccak256"] }
proptest = "1.0.0"
proptest-derive = "0.3.0"
serde_json = "1.0.83"
k256 = { version = "0.11.3", features = ["ecdsa", "sha256", "keccak256"] }
sha3 = "0.10.2"
6 changes: 3 additions & 3 deletions narwhal/dag/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ publish = false
edition = "2021"

[dependencies]
arc-swap = "1.5.1"
crypto = { path = "../crypto" }
dashmap = "5.3.4"
either = "1.7.0"
itertools = "0.10.3"
once_cell = "1.13.0"
rayon = "1.5.3"
serde = "1.0.142"
thiserror = "1.0.32"
arc-swap = "1.5.1"
once_cell = "1.13.0"
workspace-hack = { version = "0.1", path = "../workspace-hack" }
rayon = "1.5.3"

[dev-dependencies]
hex = "0.4.3"
Expand Down
4 changes: 2 additions & 2 deletions narwhal/examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ name = "demo_client"
path = "src/demo_client.rs"

[dependencies]
base64 = "0.13.0"
clap = "2.34"
tonic = "0.7.2"
prost = "0.10.4"
tokio = { version = "1.20.1", features = ["macros", "rt-multi-thread"] }
base64 = "0.13.0"
tonic = "0.7.2"
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[build-dependencies]
Expand Down
16 changes: 8 additions & 8 deletions narwhal/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@ async-trait = "0.1.57"
bincode = "1.3.3"
blake2 = "0.9"
bytes = "1.2.1"
config = { path = "../config" }
consensus = { path = "../consensus" }
crypto = { path = "../crypto" }
futures = "0.3.21"
multiaddr = "0.14.0"
primary = { path = "../primary" }
rocksdb = { version = "0.18.0", features = ["snappy", "lz4", "zstd", "zlib"], default-features = false }
serde = { version = "1.0.142", features = ["derive"] }
thiserror = "1.0.32"
tokio = { version = "1.20.1", features = ["sync"] }
tokio-util = { version = "0.7.3", features = ["codec"] }
tracing = "0.1.36"
config = { path = "../config" }
consensus = { path = "../consensus" }
crypto = { path = "../crypto" }
primary = { path = "../primary" }
tonic = "0.7.2"
multiaddr = "0.14.0"
tracing = "0.1.36"

types = { path = "../types" }
worker = { path = "../worker" }
mysten-network = { git = "https://github.com/mystenlabs/mysten-infra.git", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }

store = { git = "https://github.com/mystenlabs/mysten-infra.git", package = "typed-store", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }
mysten-network = { git = "https://github.com/mystenlabs/mysten-infra.git", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
indexmap = { version = "1.9.1", features = ["serde"] }
rand = "0.8.5"
tempfile = "3.3.0"
test_utils = { path = "../test_utils" }
indexmap = { version = "1.9.1", features = ["serde"] }
14 changes: 7 additions & 7 deletions narwhal/network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ edition = "2021"
publish = false

[dependencies]
anyhow = "1.0.59"
async-trait = "0.1.57"
backoff = { version = "0.4.0", features = ["tokio"] }
bytes = "1.2.1"
crypto = { path = "../crypto" }
futures = "0.3.21"
multiaddr = "0.14.0"
prometheus = "0.13.1"
rand = { version = "0.8.5", features = ["small_rng"] }
thiserror = "1.0.32"
tokio = { version = "1.20.1", features = ["rt", "net", "sync", "macros", "time"] }
tokio-util = { version = "0.7.3", features = ["codec"] }
tonic = { version = "0.7.2", features = ["tls"] }
tracing = "0.1.36"
types = { path = "../types" }
crypto = { path = "../crypto" }
tonic = { version = "0.7.2", features = ["tls"] }
backoff = { version = "0.4.0", features = ["tokio"] }
multiaddr = "0.14.0"
anyhow = "1.0.59"
prometheus = "0.13.1"

mysten-network = { git = "https://github.com/mystenlabs/mysten-infra.git", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
serde = "1.0.142"
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
bincode = "1.3.3"
Expand Down
10 changes: 5 additions & 5 deletions narwhal/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,32 @@ bincode = "1.3.3"
bytes = "1.2.1"
cfg-if = "1.0.0"
clap = "2.34"
dhat = { version = "0.3.0", optional = true }
futures = "0.3.21"
multiaddr = "0.14.0"
mysten-network = { git = "https://github.com/mystenlabs/mysten-infra.git", rev = "20ef52a00135114eb361e28673cfaa9bf4560f6f" }
rand = "0.8.5"
store = { git = "https://github.com/mystenlabs/mysten-infra.git", package = "typed-store", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }
telemetry-subscribers = { git = "https://github.com/mystenlabs/mysten-infra.git", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }
thiserror = "1.0.32"
tokio = { version = "1.20.1", features = ["full"] }
tokio-stream = "0.1.9"
tokio-util = { version = "0.7.3", features = ["codec"] }
tracing = "0.1.36"
tracing-log = "0.1.3"
tracing-subscriber = { version = "0.3.15", features = ["time", "env-filter"] }
telemetry-subscribers = { git = "https://github.com/mystenlabs/mysten-infra.git", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }
url = "2.2.2"
dhat = { version = "0.3.0", optional = true }
axum = "0.5.13"

config = { path = "../config" }
consensus = { path = "../consensus" }
crypto = { path = "../crypto" }
executor = { path = "../executor" }
network = { path = "../network" }
primary = { path = "../primary" }
prometheus = "0.13.1"
types = { path = "../types" }
worker = { path = "../worker" }
network = { path = "../network" }
axum = "0.5.13"
prometheus = "0.13.1"
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
Expand Down
23 changes: 11 additions & 12 deletions narwhal/primary/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ bincode = "1.3.3"
blake2 = "0.9"
bytes = "1.2.1"
config = { path = "../config" }
dashmap = "5.3.4"
derive_builder = "0.11.2"
ed25519-dalek = "1.0.1"
dhat = { version = "0.3.0", optional = true }
futures = "0.3.21"
itertools = "0.10.3"
multiaddr = "0.14.0"
once_cell = "1.13.0"
prometheus = "0.13.1"
prost = "0.10.4"
rand = { version = "0.8.5", features = ["small_rng"] }
serde = { version = "1.0.142", features = ["derive"] }
Expand All @@ -28,35 +31,31 @@ tokio-util = { version = "0.7.3", features = ["codec"] }
tonic = "0.7.2"
tower = "0.4.13"
tracing = "0.1.36"
dhat = { version = "0.3.0", optional = true }

consensus = { path = "../consensus" }
crypto = { path = "../crypto" }
network = { path = "../network" }
types = { path = "../types" }
mysten-network = { git = "https://github.com/mystenlabs/mysten-infra.git", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }

store = { git = "https://github.com/mystenlabs/mysten-infra.git", package = "typed-store", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }
mysten-network = { git = "https://github.com/mystenlabs/mysten-infra.git", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }
prometheus = "0.13.1"
once_cell = "1.13.0"
dashmap = "5.3.4"
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
arc-swap = { version = "1.5.1", features = ["serde"] }
async-trait = "0.1.57"
executor = { path = "../executor" }
indexmap = { version = "1.9.1", features = ["serde"] }
itertools = "0.10.3"
mockall = "0.11.2"
node = { path = "../node" }
telemetry-subscribers = { git = "https://github.com/mystenlabs/mysten-infra.git", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }
tempfile = "3.3.0"
test_utils = { path = "../test_utils" }
tracing-test = "0.2.3"
worker = { path = "../worker" }
async-trait = "0.1.57"
executor = { path = "../executor" }
thiserror = "1.0.32"
tracing = "0.1.36"
telemetry-subscribers = { git = "https://github.com/mystenlabs/mysten-infra.git", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }
indexmap = { version = "1.9.1", features = ["serde"] }
tracing-test = "0.2.3"
worker = { path = "../worker" }

[features]
benchmark = []
Expand Down
17 changes: 8 additions & 9 deletions narwhal/test_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,28 @@ bincode = "1.3.3"
blake2 = "0.9"
bytes = "1.2.1"
derive_builder = "0.11.2"
ed25519-dalek = "1.0.1"
futures = "0.3.21"
rand = "0.8.5"
indexmap = { version = "1.9.1", features = ["serde"] }
itertools = "0.10.3"
multiaddr = "0.14.0"
prometheus = "0.13.1"
rand = "0.8.5"
serde = { version = "1.0.142", features = ["derive"] }
tempfile = "3.3.0"
thiserror = "1.0.32"
tokio = { version = "1.20.1", features = ["sync", "rt", "macros"] }
tokio-util = { version = "0.7.3", features = ["codec"] }
tonic = "0.7.2"
multiaddr = "0.14.0"
tracing = "0.1.36"
indexmap = { version = "1.9.1", features = ["serde"] }
itertools = "0.10.3"

config = { path = "../config" }
crypto = { path = "../crypto", features = ["copy_key"] }
executor = { path = "../executor" }
node = { path = "../node" }
primary = { path = "../primary" }
types = { path = "../types" }
worker = { path = "../worker"}
node = { path = "../node"}
executor = { path = "../executor"}
worker = { path = "../worker" }
mysten-network = { git = "https://github.com/mystenlabs/mysten-infra.git", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }

store = { git = "https://github.com/mystenlabs/mysten-infra.git", package = "typed-store", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }
mysten-network = { git = "https://github.com/mystenlabs/mysten-infra.git", rev = "d965a5a795dcdb4d1c7964acf556bc249fdc58aa" }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
8 changes: 3 additions & 5 deletions narwhal/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ bytes = "1.2.1"
derive_builder = "0.11.2"
ed25519-dalek = "1.0.1"
futures = "0.3.21"
indexmap = { version = "1.9.1", features = ["serde"] }
prometheus = "0.13.1"
proptest = "1.0.0"
proptest-derive = "0.3.0"
Expand All @@ -26,23 +27,20 @@ thiserror = "1.0.32"
tokio = { version = "1.20.1", features = ["sync", "rt", "macros"] }
tokio-util = { version = "0.7.3", features = ["codec"] }
tonic = { version = "0.7.2", features = ["tls"] }
indexmap = { version = "1.9.1", features = ["serde"] }

config = { path = "../config" }
crypto = { path = "../crypto" }
dag = { path = "../dag" }
workspace-hack = { version = "0.1", path = "../workspace-hack" }



[dev-dependencies]
criterion = "0.3.6"
hex = "0.4.3"
serde_test = "1.0.142"
criterion = "0.3.6"

[build-dependencies]
rustversion = "1.0.9"
prost-build = "0.10.4"
rustversion = "1.0.9"
tonic-build = { version = "0.7.2", features = [ "prost", "transport" ] }

[features]
Expand Down
Loading

0 comments on commit 92e7058

Please sign in to comment.