Skip to content

Commit

Permalink
Stripping unused crates from Cargo.tomls
Browse files Browse the repository at this point in the history
  • Loading branch information
davidiw authored and aptos-bot committed Apr 6, 2022
1 parent 33c2d74 commit e3f9d62
Show file tree
Hide file tree
Showing 44 changed files with 6 additions and 147 deletions.
65 changes: 0 additions & 65 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion aptos-move/aptos-keygen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ edition = "2018"

[dependencies]
rand = "0.8.3"
sha3 = "0.9.1"
hex = "0.4.3"

aptos-crypto = { path = "../../crates/aptos-crypto" }
Expand Down
1 change: 0 additions & 1 deletion aptos-move/aptos-transactional-test-harness/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ edition = "2018"

[dependencies]
clap = "3.1.6"
either = "1.6.1"
once_cell = "1.7.2"
anyhow = "1.0.52"
bcs = "0.1.2"
Expand Down
2 changes: 0 additions & 2 deletions aptos-move/aptos-validator-interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ aptos-types = { path = "../../types" }
aptosdb = { path = "../../storage/aptosdb" }
aptos-workspace-hack = { path = "../../crates/aptos-workspace-hack" }
storage-interface = { path = "../../storage/storage-interface" }
scratchpad = { path = "../../storage/scratchpad" }
aptos-state-view = { path = "../../storage/state-view" }
move-binary-format = { git = "https://github.com/diem/move", rev = "3fe033b112eae7df2d15ab3467624165ae510caa" }
bcs = "0.1.2"
1 change: 0 additions & 1 deletion aptos-move/aptos-vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ fail = "0.4.0"
once_cell = "1.7.2"
rayon = "1.5.0"
mirai-annotations = "1.10.1"
tracing = "0.1.16"

bcs = "0.1.2"
aptos-crypto = { path = "../../crates/aptos-crypto" }
Expand Down
1 change: 0 additions & 1 deletion aptos-move/e2e-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ once_cell = "1.7.2"
rand = "0.8.3"
proptest = "1.0.0"
proptest-derive = "0.3.0"
hex = "0.4.3"
serde = { version = "1.0.124", default-features = false }

## Move dependencies
Expand Down
3 changes: 0 additions & 3 deletions aptos-move/e2e-testsuite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ license = "Apache-2.0"
publish = false

[dependencies]
serde_json = "1.0.64"
hex = "0.4.3"
bcs = "0.1.2"
proptest = "1.0.0"

## Move dependencies
Expand Down
1 change: 0 additions & 1 deletion aptos-move/genesis-viewer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ publish = false
edition = "2018"

[dependencies]
bcs = "0.1.2"
structopt = "0.3.21"

aptos-resource-viewer = { path = "../aptos-resource-viewer"}
Expand Down
1 change: 0 additions & 1 deletion aptos-move/move-examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ edition = "2018"
[dependencies]
aptos-vm = { path = "../aptos-vm" }
aptos-workspace-hack = { path = "../../crates/aptos-workspace-hack" }
framework = { path = "../framework" }
structopt = "0.3.21"
move-compiler = { git = "https://github.com/diem/move", rev = "3fe033b112eae7df2d15ab3467624165ae510caa" }
move-package = { git = "https://github.com/diem/move", rev = "3fe033b112eae7df2d15ab3467624165ae510caa" }
Expand Down
2 changes: 0 additions & 2 deletions aptos-move/mvhashmap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
once_cell = "1.7.2"
rayon = "1.5.0"
num_cpus = "1.13.0"
aptos-workspace-hack = { path = "../../crates/aptos-workspace-hack" }
crossbeam = "0.8"
dashmap = "4.0.2"
Expand Down
4 changes: 0 additions & 4 deletions aptos-move/writeset-transaction-generator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ edition = "2018"
anyhow = "1.0.52"
bcs = "0.1.2"
handlebars = "3.5.3"
hex = "0.4.3"
once_cell = "1.7.2"
serde = { version = "1.0.124", default-features = false }
serde_json = "1.0.64"
structopt = "0.3.21"
tempfile = "3.2.0"

aptos-crypto = { path = "../../crates/aptos-crypto" }
Expand Down
1 change: 0 additions & 1 deletion config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ edition = "2018"

[dependencies]
get_if_addrs = { version = "0.5.3", default-features = false }
log = { version = "0.4.14", features = ["serde"] }
mirai-annotations = "1.10.1"
rand = "0.8.3"
serde = { version = "1.0.124", features = ["rc"], default-features = false }
Expand Down
1 change: 0 additions & 1 deletion config/management/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ serde = { version = "1.0.124", features = ["rc"], default-features = false }
serde_yaml = "0.8.17"
structopt = "0.3.21"
thiserror = "1.0.24"
toml = { version = "0.5.8", default-features = false }

bcs = "0.1.2"
aptos-config = { path = ".."}
Expand Down
1 change: 0 additions & 1 deletion config/management/genesis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ anyhow = "1.0.52"
rand = "0.8.3"
serde = { version = "1.0.124", features = ["rc"], default-features = false }
structopt = "0.3.21"
thiserror = "1.0.24"
toml = { version = "0.5.8", default-features = false }

consensus-types = { path = "../../../consensus/consensus-types" }
Expand Down
3 changes: 1 addition & 2 deletions consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ mirai-annotations = { version = "1.10.1", default-features = false }
num-derive = { version = "0.3.3", default-features = false }
num-traits = { version = "0.2.14", default-features = false }
once_cell = "1.7.2"
proptest = { version = "1.0.0", optional = true }
rand = { version = "0.8.3", default-features = false }
serde = { version = "1.0.124", default-features = false }
serde_json = "1.0.64"
Expand Down Expand Up @@ -70,5 +69,5 @@ vm-validator = { path = "../vm-validator" }

[features]
default = []
fuzzing = ["proptest", "consensus-types/fuzzing", "aptos-config/fuzzing", "aptos-crypto/fuzzing", "aptos-mempool/fuzzing", "aptos-types/fuzzing", "safety-rules/testing"]
fuzzing = [ "consensus-types/fuzzing", "aptos-config/fuzzing", "aptos-crypto/fuzzing", "aptos-mempool/fuzzing", "aptos-types/fuzzing", "safety-rules/testing"]
failpoints = ["fail/failpoints"]
1 change: 0 additions & 1 deletion consensus/safety-rules/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ edition = "2018"
once_cell = "1.7.2"
rand = { version = "0.8.3", default-features = false }
proptest = { version = "1.0.0", optional = true }
rand_core = "0.6.2"

crash-handler = { path = "../../crates/crash-handler" }
consensus-types = { path = "../consensus-types" }
Expand Down
1 change: 0 additions & 1 deletion crates/aptos-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ publish = false
edition = "2018"

[dependencies]
anyhow = "1.0.52"
futures = "0.3.12"
hyper = { version = "0.14.4", features = ["full"] }
once_cell = "1.7.2"
Expand Down
2 changes: 0 additions & 2 deletions crates/aptos-workspace-hack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ standback = { version = "0.2.17", default-features = false, features = ["std"] }
subtle = { version = "2.4.1", default-features = false, features = ["std"] }
tokio = { version = "1.17.0", features = ["bytes", "fs", "full", "io-std", "io-util", "libc", "macros", "memchr", "mio", "net", "num_cpus", "once_cell", "parking_lot", "process", "rt", "rt-multi-thread", "signal", "signal-hook-registry", "socket2", "sync", "test-util", "time", "tokio-macros"] }
tokio-util = { version = "0.6.9", features = ["codec", "compat", "futures-io", "io"] }
toml = { version = "0.5.8" }
tracing = { version = "0.1.32", features = ["attributes", "log", "std", "tracing-attributes"] }
warp = { version = "0.3.2", features = ["multipart", "tls", "tokio-rustls", "tokio-tungstenite", "websocket"] }
zeroize = { version = "1.5.3", features = ["alloc", "zeroize_derive"] }
Expand Down Expand Up @@ -103,7 +102,6 @@ subtle = { version = "2.4.1", default-features = false, features = ["std"] }
syn = { version = "1.0.86", features = ["clone-impls", "derive", "extra-traits", "fold", "full", "parsing", "printing", "proc-macro", "quote", "visit", "visit-mut"] }
tokio = { version = "1.17.0", features = ["bytes", "fs", "full", "io-std", "io-util", "libc", "macros", "memchr", "mio", "net", "num_cpus", "once_cell", "parking_lot", "process", "rt", "rt-multi-thread", "signal", "signal-hook-registry", "socket2", "sync", "test-util", "time", "tokio-macros"] }
tokio-util = { version = "0.6.9", features = ["codec", "compat", "futures-io", "io"] }
toml = { version = "0.5.8" }
tracing = { version = "0.1.32", features = ["attributes", "log", "std", "tracing-attributes"] }
warp = { version = "0.3.2", features = ["multipart", "tls", "tokio-rustls", "tokio-tungstenite", "websocket"] }
zeroize = { version = "1.5.3", features = ["alloc", "zeroize_derive"] }
Expand Down
5 changes: 0 additions & 5 deletions crates/aptos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,16 @@ publish = false
edition = "2018"

[dependencies]
anyhow = "1.0.52"
base64 = "0.13.0"
clap = "3.1.6"
futures = "0.3.12"
hex = "0.4.3"
itertools = "0.10.0"
rand = "0.8.3"
serde = "1.0.124"
serde_json = "1.0.64"
serde_yaml = "0.8.17"
thiserror = "1.0.24"
tokio = { version = "1.8.1", features = ["full"] }
tokio-util = { version = "0.6.4", features = ["compat"] }
toml = { version = "0.5.8", default-features = false }
url = "2.2.2"

aptos-config = { path = "../../config" }
aptos-crypto = { path = "../aptos-crypto" }
Expand Down
1 change: 0 additions & 1 deletion crates/debug-interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ anyhow = "1.0.52"
bytes = "1.0.1"
reqwest = { version = "0.11.2", features = ["blocking", "json"], default_features = false }
serde = { version = "1.0.124", features = ["derive"], default-features = false }
serde_json = "1.0.64"
tokio = { version = "1.8.1", features = ["full"] }
warp = "0.3.2"

Expand Down
2 changes: 0 additions & 2 deletions crates/transaction-emitter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ itertools = "0.10.0"
rand = "0.8.3"
rand_core = "0.6.2"
reqwest = { version = "0.11.2", features = ["blocking", "json"] }
serde = { version = "1.0.124", features = ["derive"], default-features = false }
serde_json = "1.0.64"
structopt = "0.3.21"
termion = "1.5.6"
tokio = { version = "1.8.1", features = ["full"] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ publish = false
edition = "2018"

[dependencies]
serde = { version = "1.0.124", features = ["derive"], default-features = false }
serde_json = "1.0.64"
rand = "0.8.3"
hex = "0.4.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ edition = "2018"

[dependencies]
first-transaction = { path = "../first_transaction" }
serde = { version = "1.0.124", features = ["derive"], default-features = false }
serde_json = "1.0.64"
hex = "0.4.3"
3 changes: 0 additions & 3 deletions devtools/x-lint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ license = "Apache-2.0"
camino = "1.0.3"
guppy = "0.13.0"
hakari = "0.9.0"
once_cell = "1.7.2"
toml = "0.5.8"
serde = { version = "1.0.124", features = ["derive"] }
x-core = { path = "../x-core" }
1 change: 0 additions & 1 deletion devtools/x/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ license = "Apache-2.0"

[dependencies]
camino = "1.0.3"
cargo_metadata = "0.14.0"
determinator = "0.8.0"
serde = { version = "1.0.124", features = ["derive"] }
serde_json = "1.0.64"
Expand Down
2 changes: 0 additions & 2 deletions execution/execution-correctness/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ publish = false
edition = "2018"

[dependencies]
anyhow = "1.0.52"
rand = { version = "0.8.3", default-features = false }

consensus-types = { path = "../../consensus/consensus-types", default-features = false }
executor = { path = "../executor" }
Expand Down
2 changes: 0 additions & 2 deletions execution/executor-benchmark/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ publish = false
edition = "2018"

[dependencies]
bcs = "0.1.2"
criterion = "0.3.4"
chrono = "0.4.19"
indicatif = "0.15.0"
itertools = { version = "0.10.0", default-features = false }
jemallocator = { version = "0.3.2", features = ["profiling", "unprefixed_malloc_on_supported_platforms"] }
rand = "0.8.3"
rayon = "1.5.0"
Expand Down
1 change: 0 additions & 1 deletion execution/executor-test-helpers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ edition = "2018"
[dependencies]
anyhow = "1.0.52"
rand = "0.8.3"
tempfile = "3.2.0"

executor = { path = "../executor" }
executor-types = { path = "../executor-types" }
Expand Down
6 changes: 1 addition & 5 deletions execution/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ anyhow = "1.0.52"
fail = "0.4.0"
itertools = { version = "0.10.0", default-features = false }
once_cell = "1.7.2"
rayon = "1.5.0"
serde_json = "1.0.64"
serde = { version = "1.0.124", features = ["derive"] }

consensus-types = { path = "../../consensus/consensus-types"}
Expand All @@ -34,8 +32,6 @@ aptos-workspace-hack = { version = "0.1", path = "../../crates/aptos-workspace-h
scratchpad = { path = "../../storage/scratchpad" }
storage-interface = { path = "../../storage/storage-interface" }

proptest = { version = "1.0.0", optional = true }

[dev-dependencies]
proptest = "1.0.0"
rand = "0.8.3"
Expand All @@ -52,5 +48,5 @@ vm-genesis = { path = "../../aptos-move/vm-genesis" }

[features]
default = []
fuzzing = ["consensus-types/fuzzing", "aptos-crypto/fuzzing", "aptos-types/fuzzing", "proptest", "storage-interface/fuzzing"]
fuzzing = ["consensus-types/fuzzing", "aptos-crypto/fuzzing", "aptos-types/fuzzing", "storage-interface/fuzzing"]
failpoints = ["fail/failpoints", "aptos-vm/failpoints"]
3 changes: 1 addition & 2 deletions network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ pin-project = "1.0.5"
proptest = { version = "1.0.0", default-features = true, optional = true }
proptest-derive = { version = "0.3.0", optional = true }
rand = { version = "0.8.3", features = ["small_rng"] }
rand_core = { version = "0.6.2", optional = true }
serde = { version = "1.0.124", default-features = false }
serde_bytes = "0.11.5"
serde_json = "1.0.64"
Expand Down Expand Up @@ -71,5 +70,5 @@ serial_test = "0.5.1"

[features]
default = []
fuzzing = ["bitvec/fuzzing", "aptos-config/fuzzing", "aptos-crypto/fuzzing", "aptos-types/fuzzing", "aptos-proptest-helpers", "aptos-time-service/testing", "aptos-types/fuzzing", "memsocket/testing", "netcore/fuzzing", "proptest", "proptest-derive", "rand_core"]
fuzzing = ["bitvec/fuzzing", "aptos-config/fuzzing", "aptos-crypto/fuzzing", "aptos-types/fuzzing", "aptos-proptest-helpers", "aptos-time-service/testing", "aptos-types/fuzzing", "memsocket/testing", "netcore/fuzzing", "proptest", "proptest-derive"]
testing = ["aptos-config/testing", "aptos-time-service/testing", "memsocket/testing", "netcore/testing"]
6 changes: 1 addition & 5 deletions sdk/transaction-builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ publish = false
edition = "2018"

[dependencies]
anyhow = "1.0.52"
bcs = "0.1.2"
once_cell = "1.7.2"
serde = { version = "1.0.124", features = ["derive"] }

move-core-types = { git = "https://github.com/diem/move", rev = "3fe033b112eae7df2d15ab3467624165ae510caa", version = "0.0.3", features=["address32"] }
aptos-types = { path = "../../types" }

proptest = { version = "1.0.0", optional = true }
proptest-derive = { version = "0.3.0", optional = true }
aptos-workspace-hack = { version = "0.1", path = "../../crates/aptos-workspace-hack" }
cached-framework-packages = {path = "../../aptos-move/framework/cached-packages" }
Expand All @@ -30,4 +26,4 @@ move-core-types = { git = "https://github.com/diem/move", rev = "3fe033b112eae7d

[features]
default = []
fuzzing = ["proptest", "proptest-derive", "cached-framework-packages/fuzzing", "move-core-types/fuzzing"]
fuzzing = [ "proptest-derive", "cached-framework-packages/fuzzing", "move-core-types/fuzzing"]
2 changes: 0 additions & 2 deletions state-sync/inter-component/event-notifications/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ edition = "2018"
[dependencies]
async-trait = "0.1.42"
futures = "0.3.12"
itertools = { version = "0.10.0", default-features = false }
serde = { version = "1.0.124", default-features = false }
thiserror = "1.0.24"
tokio = { version = "1.8.1" }

channel = { path = "../../../crates/channel" }
aptos-id-generator = { path = "../../../crates/aptos-id-generator" }
Expand Down
2 changes: 0 additions & 2 deletions storage/backup/backup-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ edition = "2018"
[dependencies]
anyhow = "1.0.52"
async-trait = "0.1.42"
byteorder = "1.4.3"
bytes = "1.0.1"
futures = "0.3.12"
hex = "0.4.3"
itertools = "0.10.0"
num_cpus = "1.13.0"
once_cell = "1.7.2"
Expand Down
1 change: 0 additions & 1 deletion storage/backup/backup-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ edition = "2018"
[dependencies]
anyhow = "1.0.52"
bytes = "1.0.1"
futures = "0.3.12"
hyper = "0.14.4"
once_cell = "1.7.2"
serde = { version = "1.0.124", default-features = false }
Expand Down
3 changes: 1 addition & 2 deletions storage/jellyfish-merkle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ num-traits = "0.2.14"
once_cell = "1.7.2"
proptest = { version = "1.0.0", optional = true }
proptest-derive = { version = "0.3.0", optional = true }
rand = { version = "0.8.3", optional = true }
serde = { version = "1.0.124", features = ["derive"] }
thiserror = "1.0.24"

Expand All @@ -42,4 +41,4 @@ aptos-types = { path = "../../types", features = ["fuzzing"] }

[features]
default = []
fuzzing = ["proptest", "rand", "proptest-derive", "aptos-crypto/fuzzing", "aptos-types/fuzzing"]
fuzzing = ["proptest", "proptest-derive", "aptos-crypto/fuzzing", "aptos-types/fuzzing"]
1 change: 0 additions & 1 deletion storage/storage-interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ edition = "2018"

[dependencies]
anyhow = "1.0.52"
itertools = "0.10.0"
serde = { version = "1.0.124", default-features = false }
thiserror = "1.0.24"
parking_lot = "0.11.1"
Expand Down
5 changes: 1 addition & 4 deletions storage/storage-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ edition = "2018"

[dependencies]
anyhow = "1.0.52"
tokio = { version = "1.8.1", features = ["full"] }
futures = "0.3.12"

bcs = "0.1.2"
aptos-config = { path = "../../config" }
Expand All @@ -26,7 +24,6 @@ aptos-types = { path = "../../types" }
aptos-workspace-hack = { version = "0.1", path = "../../crates/aptos-workspace-hack" }
rand = { version = "0.8.3", optional = true }
storage-client = { path = "../storage-client", optional = true }
proptest = { version = "1.0.0", optional = true }

[dev-dependencies]
itertools = "0.10.0"
Expand All @@ -37,4 +34,4 @@ storage-client = { path = "../storage-client" }

[features]
default = []
fuzzing = ["proptest", "aptosdb/fuzzing", "rand"]
fuzzing = [ "aptosdb/fuzzing", "rand"]
Loading

0 comments on commit e3f9d62

Please sign in to comment.