diff --git a/Cargo.toml b/Cargo.toml index 5b1333c2f..602c36e32 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" \ No newline at end of file diff --git a/bin/reth/Cargo.toml b/bin/reth/Cargo.toml index 704955498..6f636cbb5 100644 --- a/bin/reth/Cargo.toml +++ b/bin/reth/Cargo.toml @@ -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" diff --git a/crates/interfaces/Cargo.toml b/crates/interfaces/Cargo.toml index c0525a778..9705f00bb 100644 --- a/crates/interfaces/Cargo.toml +++ b/crates/interfaces/Cargo.toml @@ -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", @@ -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", diff --git a/crates/net/eth-wire/Cargo.toml b/crates/net/eth-wire/Cargo.toml index 19a78317c..d3042c94f 100644 --- a/crates/net/eth-wire/Cargo.toml +++ b/crates/net/eth-wire/Cargo.toml @@ -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] @@ -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] diff --git a/crates/primitives/Cargo.toml b/crates/primitives/Cargo.toml index d181a462f..0931d4fe4 100644 --- a/crates/primitives/Cargo.toml +++ b/crates/primitives/Cargo.toml @@ -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"] } @@ -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" diff --git a/crates/storage/codecs/Cargo.toml b/crates/storage/codecs/Cargo.toml index 3b6719ae0..458ef3063 100644 --- a/crates/storage/codecs/Cargo.toml +++ b/crates/storage/codecs/Cargo.toml @@ -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] @@ -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" diff --git a/crates/storage/db/Cargo.toml b/crates/storage/db/Cargo.toml index 9e2d405b1..e980a8e71 100644 --- a/crates/storage/db/Cargo.toml +++ b/crates/storage/db/Cargo.toml @@ -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] @@ -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 diff --git a/crates/transaction-pool/Cargo.toml b/crates/transaction-pool/Cargo.toml index dadfedff6..5cf13b257 100644 --- a/crates/transaction-pool/Cargo.toml +++ b/crates/transaction-pool/Cargo.toml @@ -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" @@ -61,4 +62,5 @@ arbitrary = ["proptest", "reth-primitives/arbitrary"] [[bench]] name = "reorder" +required-features = ["test-utils"] harness = false diff --git a/crates/trie/Cargo.toml b/crates/trie/Cargo.toml index 428561838..3c37d4295 100644 --- a/crates/trie/Cargo.toml +++ b/crates/trie/Cargo.toml @@ -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"