chore: split db abstraction into new crate (#8594)

This commit is contained in:
Oliver
2024-06-04 23:45:57 +02:00
committed by GitHub
parent a8095740fc
commit 51a28f22da
183 changed files with 825 additions and 755 deletions

View File

@ -13,10 +13,10 @@ workspace = true
[dependencies]
# reth
reth-db-api.workspace = true
reth-primitives.workspace = true
reth-fs-util.workspace = true
reth-storage-errors.workspace = true
reth-codecs.workspace = true
reth-libmdbx = { workspace = true, optional = true, features = [
"return-borrowed",
"read-tx-timeouts",
@ -26,8 +26,6 @@ reth-tracing.workspace = true
# codecs
serde = { workspace = true, default-features = false }
parity-scale-codec = { version = "3.2.1", features = ["bytes"] }
modular-bitfield.workspace = true
# metrics
reth-metrics.workspace = true
@ -45,17 +43,11 @@ rustc-hash.workspace = true
sysinfo = "0.30"
# arbitrary utils
arbitrary = { workspace = true, features = ["derive"], optional = true }
proptest = { workspace = true, optional = true }
proptest-derive = { workspace = true, optional = true }
strum = { workspace = true, features = ["derive"] }
once_cell.workspace = true
[dev-dependencies]
# reth libs with arbitrary
reth-primitives = { workspace = true, features = ["arbitrary"] }
reth-codecs.workspace = true
rand.workspace = true
serde_json.workspace = true
@ -72,7 +64,6 @@ iai-callgrind = "0.10.2"
arbitrary = { workspace = true, features = ["derive"] }
proptest.workspace = true
proptest-derive.workspace = true
paste.workspace = true
@ -83,12 +74,7 @@ default = ["mdbx"]
test-utils = ["tempfile", "arbitrary"]
mdbx = ["reth-libmdbx"]
bench = []
arbitrary = [
"reth-primitives/arbitrary",
"dep:arbitrary",
"dep:proptest",
"dep:proptest-derive",
]
arbitrary = ["reth-primitives/arbitrary", "reth-db-api/arbitrary"]
optimism = []
[[bench]]