Skip to content

Commit

Permalink
chore: make txpool cargo test compile (paradigmxyz#4058)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Aug 4, 2023
1 parent 64188a3 commit 443383b
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 22 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,7 @@ jsonrpsee-types = { version = "0.19" }

## crypto
secp256k1 = { version = "0.27.0", default-features = false, features = ["global-context", "rand-std", "recovery"] }

### misc-testing
proptest = "1.0"
arbitrary = "1.1"
2 changes: 1 addition & 1 deletion bin/reth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ metrics-util = "0.14.0"
metrics-process = "1.0.9"

# test vectors generation
proptest = "1.0"
proptest.workspace = true

# tui
comfy-table = "7.0"
Expand Down
4 changes: 2 additions & 2 deletions crates/interfaces/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ auto_impl = "1.0"
thiserror.workspace = true
tracing.workspace = true
rand.workspace = true
arbitrary = { version = "1.1.7", features = ["derive"], optional = true }
arbitrary = { workspace = true, features = ["derive"], optional = true }
secp256k1 = { workspace = true, default-features = false, features = [
"alloc",
"recovery",
Expand All @@ -44,7 +44,7 @@ clap = { version = "4", features = ["derive"], optional = true }
reth-db = { path = "../storage/db", features = ["test-utils"] }
tokio = { workspace = true, features = ["full"] }
tokio-stream = { workspace = true, features = ["sync"] }
arbitrary = { version = "1.1.7", features = ["derive"] }
arbitrary = { workspace = true, features = ["derive"] }
hex-literal = "0.3"
secp256k1 = { workspace = true, features = [
"alloc",
Expand Down
8 changes: 4 additions & 4 deletions crates/net/eth-wire/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ smol_str = "0.2"
async-trait.workspace = true

# arbitrary utils
arbitrary = { version = "1.1.7", features = ["derive"], optional = true }
proptest = { version = "1.0", optional = true }
arbitrary = { workspace = true, features = ["derive"], optional = true }
proptest = { workspace = true, optional = true }
proptest-derive = { version = "0.3", optional = true }

[dev-dependencies]
Expand All @@ -56,8 +56,8 @@ hex = "0.4"
rand.workspace = true
secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery"] }

arbitrary = { version = "1.1.7", features = ["derive"] }
proptest = { version = "1.0" }
arbitrary = { workspace = true, features = ["derive"] }
proptest.workspace = true
proptest-derive = "0.3"

[features]
Expand Down
8 changes: 4 additions & 4 deletions crates/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ plain_hasher = "0.2"
hash-db = "0.15"

# arbitrary utils
arbitrary = { version = "1.1.7", features = ["derive"], optional = true }
proptest = { version = "1.0", optional = true }
arbitrary = { workspace = true, features = ["derive"], optional = true }
proptest = { workspace = true, optional = true }
proptest-derive = { version = "0.3", optional = true }
strum = { workspace = true, features = ["derive"] }

Expand All @@ -76,8 +76,8 @@ hex-literal = "0.3"
test-fuzz = "4"
rand.workspace = true
revm-primitives = { workspace = true, features = ["arbitrary"] }
arbitrary = { version = "1.1.7", features = ["derive"] }
proptest = { version = "1.0" }
arbitrary = { workspace = true, features = ["derive"] }
proptest.workspace = true
proptest-derive = "0.3"
assert_matches = "1.5.0"
toml = "0.7.4"
Expand Down
8 changes: 4 additions & 4 deletions crates/storage/codecs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ codecs-derive = { path = "./derive", default-features = false }
revm-primitives = { workspace = true, features = ["serde"] }

# arbitrary utils
arbitrary = { version = "1.1.7", features = ["derive"], optional = true }
proptest = { version = "1.0", optional = true }
arbitrary = { workspace = true, features = ["derive"], optional = true }
proptest = { workspace = true, optional = true }
proptest-derive = { version = "0.3", optional = true }

[dev-dependencies]
Expand All @@ -32,6 +32,6 @@ serde = "1.0"
modular-bitfield = "0.11.2"
test-fuzz = "4"

arbitrary = { version = "1.1.7", features = ["derive"] }
proptest = { version = "1.0" }
arbitrary = { workspace = true, features = ["derive"] }
proptest.workspace = true
proptest-derive = "0.3"
8 changes: 4 additions & 4 deletions crates/storage/db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ derive_more = "0.99"
eyre = "0.6.8"

# arbitrary utils
arbitrary = { version = "1.1.7", features = ["derive"], optional = true }
proptest = { version = "1.0", optional = true }
arbitrary = { workspace = true, features = ["derive"], optional = true }
proptest = { workspace = true, optional = true }
proptest-derive = { version = "0.3", optional = true }

[dev-dependencies]
Expand All @@ -65,8 +65,8 @@ secp256k1.workspace = true

async-trait.workspace = true

arbitrary = { version = "1.1.7", features = ["derive"] }
proptest = { version = "1.0" }
arbitrary = { workspace = true, features = ["derive"] }
proptest.workspace = true
proptest-derive = "0.3"

serde_json.workspace = true
Expand Down
6 changes: 4 additions & 2 deletions crates/transaction-pool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ auto_impl = "1.0"
# testing
rand = { workspace = true, optional = true }
paste = { version = "1.0", optional = true }
proptest = { version = "1.0", optional = true }
proptest = { workspace = true, optional = true }

[dev-dependencies]
reth-primitives = { workspace = true, features = ["arbitrary"] }
paste = "1.0"
rand = "0.8"
proptest = "1.0"
proptest.workspace = true
criterion = "0.5"
assert_matches = "1.5"

Expand All @@ -61,4 +62,5 @@ arbitrary = ["proptest", "reth-primitives/arbitrary"]

[[bench]]
name = "reorder"
required-features = ["test-utils"]
harness = false
2 changes: 1 addition & 1 deletion crates/trie/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ reth-provider.workspace = true
triehash = "0.8"

# misc
proptest = "1.0"
proptest.workspace = true
tokio = { workspace = true, default-features = false, features = ["sync", "rt", "macros"] }
tokio-stream.workspace = true
criterion = "0.5"
Expand Down

0 comments on commit 443383b

Please sign in to comment.