Skip to content

Commit

Permalink
Eugene/clean deps (#13780)
Browse files Browse the repository at this point in the history
## Description 
Ran `cargo machete` to (see https://github.com/bnjbvr/cargo-machete) to
determine un-used dependencies and removed them.

## Test Plan 
preland ci
  • Loading branch information
ebmifa authored Sep 14, 2023
1 parent fb83754 commit 93934f6
Show file tree
Hide file tree
Showing 84 changed files with 13 additions and 914 deletions.
229 changes: 0 additions & 229 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions crates/anemo-benchmark/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@ edition = "2021"

[dependencies]
anemo.workspace = true
anemo-tower.workspace = true
anyhow.workspace = true
clap = { version = "4.1.4", features = ["derive"] }
mysten-network.workspace = true
rand.workspace= true
sui-types.workspace = true
telemetry-subscribers.workspace = true
tokio = { workspace = true, features = ["full"] }
tracing.workspace = true
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[build-dependencies]
Expand Down
11 changes: 0 additions & 11 deletions crates/sui-analytics-indexer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,15 @@ edition = "2021"
anyhow.workspace = true
async-trait.workspace = true
axum.workspace = true
backoff.workspace = true
bcs.workspace = true
chrono.workspace = true
clap.workspace = true
csv.workspace = true
futures.workspace = true
itertools.workspace = true
move-core-types.workspace = true
prometheus.workspace = true
serde.workspace = true
serde_json.workspace = true
regex.workspace = true
tap.workspace = true
thiserror.workspace = true
tracing.workspace = true
tokio = { workspace = true, features = ["full"] }
tokio-stream.workspace = true
url.workspace = true

fastcrypto = { workspace = true, features = ["copy_key"] }
mysten-metrics.workspace = true
Expand All @@ -38,8 +29,6 @@ workspace-hack = { version = "0.1", path = "../workspace-hack" }
telemetry-subscribers.workspace = true
sui-rest-api.workspace = true

cached.workspace = true

[dev-dependencies]

[[bin]]
Expand Down
8 changes: 0 additions & 8 deletions crates/sui-archival/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,19 @@ authors = ["Mysten Labs <build@mystenlabs.com>"]

[dependencies]
indicatif.workspace = true
integer-encoding.workspace = true
anyhow.workspace = true
serde.workspace = true
bcs.workspace = true
byteorder.workspace = true
tracing.workspace = true
bytes.workspace = true
tokio-stream.workspace = true
num_enum.workspace = true
futures.workspace = true
backoff.workspace = true
rand.workspace = true
object_store.workspace = true
prometheus.workspace = true
zstd.workspace = true
typed-store.workspace = true
typed-store-derive.workspace = true
sui-config.workspace = true
sui-types.workspace = true
sui-storage.workspace = true
sui-protocol-config.workspace = true
fastcrypto = { workspace = true, features = ["copy_key"] }
tokio = { workspace = true, features = ["full"] }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
Expand Down
2 changes: 0 additions & 2 deletions crates/sui-aws-orchestrator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ russh.workspace = true
russh-keys.workspace = true
aws-config.workspace = true
color-eyre.workspace = true
glob.workspace = true
clap.workspace = true
eyre.workspace = true
prettytable-rs.workspace = true
serde_json.workspace = true
futures.workspace = true
thiserror.workspace = true
rand.workspace = true
reqwest.workspace = true
async-trait.workspace = true
crossterm.workspace = true
Expand Down
4 changes: 0 additions & 4 deletions crates/sui-benchmark/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ itertools.workspace = true
tokio = { workspace = true, features = ["full"] }
strum.workspace = true
strum_macros.workspace = true
rocksdb.workspace = true
tracing.workspace = true
clap.workspace = true
prometheus.workspace = true
Expand All @@ -38,14 +37,11 @@ sui-json-rpc-types.workspace = true
sui-protocol-config.workspace = true
sui-test-transaction-builder.workspace = true
sui-swarm-config.workspace = true
sui-swarm.workspace = true
telemetry-subscribers.workspace = true
roaring.workspace = true
regex.workspace = true

fastcrypto.workspace = true
move-core-types.workspace = true
move-package.workspace = true
mysten-metrics.workspace = true
narwhal-node.workspace = true
workspace-hack = { version = "0.1", path = "../workspace-hack" }
Expand Down
4 changes: 0 additions & 4 deletions crates/sui-cluster-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ publish = false
edition = "2021"

[dependencies]
serde.workspace = true
futures.workspace = true
serde_json.workspace = true
tempfile.workspace = true
Expand All @@ -18,20 +17,17 @@ clap.workspace = true
reqwest.workspace = true
async-trait.workspace = true
anyhow = { workspace = true, features = ["backtrace"] }
bcs.workspace = true
uuid.workspace = true
prometheus.workspace = true
fastcrypto.workspace = true
shared-crypto.workspace = true
mysten-metrics.workspace = true

sui-indexer.workspace = true
sui-faucet.workspace = true
sui-swarm.workspace = true
sui.workspace = true
sui-swarm-config.workspace = true
sui-json-rpc-types.workspace = true
sui-move-build.workspace = true
sui-sdk.workspace = true
sui-keys.workspace = true
sui-types.workspace = true
Expand Down
4 changes: 0 additions & 4 deletions crates/sui-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,15 @@ bcs.workspace = true
csv.workspace = true
dirs.workspace = true
fastcrypto.workspace = true
move-binary-format.workspace = true
move-core-types.workspace = true
once_cell.workspace = true
rand.workspace = true
serde = { workspace = true, features = ["derive", "rc"] }
serde_with.workspace = true
serde_yaml.workspace = true
tempfile.workspace = true
tracing.workspace = true
prometheus.workspace = true

narwhal-config.workspace = true
shared-crypto.workspace = true
sui-keys.workspace = true
sui-protocol-config.workspace = true
sui-storage.workspace = true
Expand Down
1 change: 0 additions & 1 deletion crates/sui-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ once_cell.workspace = true
parking_lot.workspace = true
prometheus.workspace = true
rand.workspace = true
reqwest.workspace = true
rocksdb.workspace = true
scopeguard.workspace = true
serde.workspace = true
Expand Down
1 change: 0 additions & 1 deletion crates/sui-cost/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ serde.workspace = true
strum.workspace = true
strum_macros.workspace = true
bcs.workspace = true
sui-core.workspace = true

[dev-dependencies]
insta.workspace = true
Expand Down
7 changes: 0 additions & 7 deletions crates/sui-genesis-builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@ publish = false
edition = "2021"

[dependencies]
anemo.workspace = true
anyhow.workspace = true
bcs.workspace = true
camino.workspace = true
csv.workspace = true
dirs.workspace = true
fastcrypto.workspace = true
move-binary-format.workspace = true
move-core-types.workspace = true
once_cell.workspace = true
rand.workspace = true
serde.workspace = true
serde_with.workspace = true
Expand All @@ -25,14 +21,11 @@ tempfile.workspace = true
tracing.workspace = true
prometheus.workspace = true

narwhal-config.workspace = true
shared-crypto.workspace = true
sui-config.workspace = true
sui-execution.workspace = true
sui-framework.workspace = true
sui-keys.workspace = true
sui-protocol-config.workspace = true
sui-storage.workspace = true
sui-types.workspace = true
workspace-hack = { version = "0.1", path = "../workspace-hack" }
[target.'cfg(msim)'.dependencies]
Expand Down
2 changes: 0 additions & 2 deletions crates/sui-graphql-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ edition = "2021"


[dependencies]
anyhow.workspace = true
async-graphql = {workspace = true, features = ["dataloader"] }
async-graphql-axum = { version = "5.0.10" }
async-trait.workspace = true
Expand All @@ -33,7 +32,6 @@ workspace-hack = { version = "0.1", path = "../workspace-hack" }
# Used for dummy data
bcs.workspace = true
sui-sdk.workspace = true
sui-json-rpc.workspace = true
sui-json-rpc-types.workspace = true

[dev-dependencies]
Expand Down
5 changes: 0 additions & 5 deletions crates/sui-indexer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,13 @@ regex.workspace = true
thiserror.workspace = true
tracing.workspace = true
tokio = { workspace = true, features = ["full"] }
tokio-stream.workspace = true
url.workspace = true

fastcrypto = { workspace = true, features = ["copy_key"] }
mysten-metrics.workspace = true
sui-config.workspace = true
sui-core.workspace = true
sui-json.workspace = true
sui-json-rpc.workspace = true
sui-json-rpc-types.workspace = true
sui-keys.workspace = true
sui-node.workspace = true
sui-open-rpc.workspace = true
sui-sdk.workspace = true
sui-types.workspace = true
Expand Down
3 changes: 0 additions & 3 deletions crates/sui-json-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,12 @@ signature.workspace = true
thiserror.workspace = true
bcs.workspace = true
eyre.workspace = true
num_cpus.workspace = true
once_cell.workspace = true
axum-server.workspace = true
serde_json.workspace = true

tap.workspace = true

sui-core.workspace = true
sui-swarm-config.workspace = true
sui-storage.workspace = true
sui-types.workspace = true
sui-json.workspace = true
Expand Down
2 changes: 0 additions & 2 deletions crates/sui-json/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ edition = "2021"
[dependencies]
anyhow.workspace = true
bcs.workspace = true
once_cell.workspace = true
serde.workspace = true
serde_json.workspace = true
schemars.workspace = true

sui-framework.workspace = true
sui-protocol-config.workspace = true
sui-types.workspace = true

move-binary-format.workspace = true
Expand Down
2 changes: 0 additions & 2 deletions crates/sui-kvstore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ tokio = { workspace = true, features = ["full"] }
anyhow = { workspace = true, features = ["backtrace"] }
prometheus.workspace = true
serde.workspace = true
strum.workspace = true
strum_macros.workspace = true
bcs.workspace = true
tracing.workspace = true
mysten-metrics.workspace = true
Expand Down
2 changes: 0 additions & 2 deletions crates/sui-move-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ fastcrypto.workspace = true
tempfile.workspace = true

move-bytecode-verifier = { path = "../../external-crates/move/move-bytecode-verifier" }
sui-adapter = { path = "../../sui-execution/latest/sui-adapter", package = "sui-adapter-latest" }
sui-verifier = { path = "../../sui-execution/latest/sui-verifier", package = "sui-verifier-latest" }

serde-reflection.workspace = true
sui-types.workspace = true
sui-protocol-config.workspace = true

move-binary-format.workspace = true
move-bytecode-utils.workspace = true
Expand Down
2 changes: 0 additions & 2 deletions crates/sui-move/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ prometheus.workspace = true
git-version.workspace = true
const-str.workspace = true

fastcrypto.workspace = true
move-binary-format.workspace = true
move-cli.workspace = true
move-disassembler.workspace = true
Expand All @@ -27,7 +26,6 @@ move-package.workspace = true
move-prover-boogie-backend.workspace = true
move-prover.workspace = true
move-unit-test.workspace = true
move-vm-test-utils.workspace = true
telemetry-subscribers.workspace = true
tokio = { workspace = true, features = ["full"] }

Expand Down
1 change: 0 additions & 1 deletion crates/sui-network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ sui-archival.workspace = true
sui-storage.workspace = true
sui-types.workspace = true
sui-config.workspace = true
shared-crypto.workspace = true
sui-swarm-config.workspace = true

mysten-network.workspace = true
Expand Down
1 change: 0 additions & 1 deletion crates/sui-node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ sui-kvstore.workspace = true
mysten-metrics.workspace = true
mysten-common.workspace = true
narwhal-network.workspace = true
narwhal-types.workspace = true
typed-store.workspace = true
mysten-network.workspace = true
telemetry-subscribers.workspace = true
Expand Down
5 changes: 0 additions & 5 deletions crates/sui-oracle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,18 @@ prometheus = "0.13.3"
tokio = { workspace = true, features = ["full"] }
tracing = "0.1.36"
once_cell.workspace = true
futures = "0.3.23"
reqwest = { version = "0.11.13", default_features= false, features = ["blocking", "json", "rustls-tls"] }
serde = { version = "1.0.144", features = ["derive", "rc"] }
serde_json = { version = "1.0.1"}
jsonpath_lib = "0.3.0"
chrono.workspace = true
serde_with = "2.1.0"
tap.workspace = true
bcs.workspace = true

sui-config = { path = "../sui-config" }
sui-json = { path = "../sui-json" }
sui-json-rpc = { path = "../sui-json-rpc" }
sui-json-rpc-types = { path = "../sui-json-rpc-types" }
sui-sdk = { path = "../sui-sdk" }
sui-types = { path = "../sui-types" }
mysten-metrics = { path = "../mysten-metrics" }
move-core-types.workspace = true
telemetry-subscribers.workspace = true
workspace-hack = { version = "0.1", path = "../workspace-hack" }
3 changes: 0 additions & 3 deletions crates/sui-replay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ async-trait.workspace = true
jsonrpsee.workspace = true
async-recursion.workspace = true
clap = { version = "4.1.4", features = ["derive"] }
colored.workspace = true
futures.workspace = true
serde.workspace = true
serde_json.workspace = true
Expand All @@ -33,7 +32,6 @@ http.workspace = true
move-binary-format.workspace = true
move-bytecode-utils.workspace = true
move-core-types.workspace = true
move-package.workspace = true
tokio.workspace = true
typed-store.workspace = true

Expand All @@ -47,5 +45,4 @@ sui-protocol-config.workspace = true
sui-sdk.workspace = true
sui-storage.workspace = true
sui-types.workspace = true
sui-macros.workspace = true
workspace-hack = { version = "0.1", path = "../workspace-hack" }
2 changes: 0 additions & 2 deletions crates/sui-rest-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ reqwest.workspace = true
axum.workspace = true
sui-types.workspace = true
sui-core.workspace = true
futures.workspace = true
tap.workspace = true
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
Expand Down
Loading

1 comment on commit 93934f6

@vercel
Copy link

@vercel vercel bot commented on 93934f6 Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.