mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
test: make cargo t compile in db-models (#12263)
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -6920,7 +6920,7 @@ dependencies = [
|
||||
"proptest",
|
||||
"proptest-arbitrary-interop",
|
||||
"reth-codecs",
|
||||
"reth-primitives",
|
||||
"reth-primitives-traits",
|
||||
"serde",
|
||||
"test-fuzz",
|
||||
]
|
||||
|
||||
@@ -14,7 +14,7 @@ workspace = true
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-codecs.workspace = true
|
||||
reth-primitives = { workspace = true, features = ["reth-codec"] }
|
||||
reth-primitives-traits.workspace = true
|
||||
|
||||
# ethereum
|
||||
alloy-primitives.workspace = true
|
||||
@@ -32,20 +32,22 @@ proptest = { workspace = true, optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
# reth
|
||||
reth-primitives = { workspace = true, features = ["arbitrary"] }
|
||||
reth-primitives-traits = { workspace = true, features = ["arbitrary"] }
|
||||
reth-codecs.workspace = true
|
||||
arbitrary = { workspace = true, features = ["derive"] }
|
||||
|
||||
proptest.workspace = true
|
||||
proptest-arbitrary-interop.workspace = true
|
||||
test-fuzz.workspace = true
|
||||
|
||||
[features]
|
||||
test-utils = [
|
||||
"reth-primitives-traits/test-utils",
|
||||
"arbitrary",
|
||||
"reth-primitives/test-utils",
|
||||
"reth-codecs/test-utils"
|
||||
]
|
||||
arbitrary = [
|
||||
"reth-primitives/arbitrary",
|
||||
"reth-primitives-traits/arbitrary",
|
||||
"dep:arbitrary",
|
||||
"dep:proptest",
|
||||
"alloy-primitives/arbitrary",
|
||||
|
||||
@@ -2,7 +2,7 @@ use reth_codecs::{add_arbitrary_tests, Compact};
|
||||
use serde::Serialize;
|
||||
|
||||
use alloy_primitives::{bytes::Buf, Address};
|
||||
use reth_primitives::Account;
|
||||
use reth_primitives_traits::Account;
|
||||
|
||||
/// Account as it is saved in the database.
|
||||
///
|
||||
|
||||
@@ -2,7 +2,7 @@ use std::ops::Range;
|
||||
|
||||
use alloy_primitives::TxNumber;
|
||||
use reth_codecs::{add_arbitrary_tests, Compact};
|
||||
use reth_primitives::Withdrawals;
|
||||
use reth_primitives_traits::Withdrawals;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// Total number of transactions.
|
||||
|
||||
Reference in New Issue
Block a user