mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
109 lines
2.4 KiB
TOML
109 lines
2.4 KiB
TOML
[package]
|
|
name = "reth-db"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
homepage.workspace = true
|
|
repository.workspace = true
|
|
description = "Database primitives used in reth."
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
# reth
|
|
reth-db-api.workspace = true
|
|
reth-primitives = { workspace = true, features = ["reth-codec"] }
|
|
reth-primitives-traits.workspace = true
|
|
reth-fs-util.workspace = true
|
|
reth-storage-errors.workspace = true
|
|
reth-nippy-jar.workspace = true
|
|
reth-prune-types.workspace = true
|
|
reth-stages-types.workspace = true
|
|
reth-tracing.workspace = true
|
|
reth-trie-common.workspace = true
|
|
|
|
# mdbx
|
|
reth-libmdbx = { workspace = true, optional = true, features = [
|
|
"return-borrowed",
|
|
"read-tx-timeouts",
|
|
] }
|
|
eyre = { workspace = true, optional = true }
|
|
|
|
# codecs
|
|
serde = { workspace = true, default-features = false }
|
|
|
|
# metrics
|
|
reth-metrics = { workspace = true, optional = true }
|
|
metrics = { workspace = true, optional = true }
|
|
|
|
# misc
|
|
bytes.workspace = true
|
|
page_size = { version = "0.6.0", optional = true }
|
|
thiserror.workspace = true
|
|
tempfile = { workspace = true, optional = true }
|
|
derive_more.workspace = true
|
|
paste.workspace = true
|
|
rustc-hash = { workspace = true, optional = true }
|
|
sysinfo = { version = "0.30", default-features = false }
|
|
|
|
# arbitrary utils
|
|
strum = { workspace = true, features = ["derive"], optional = true }
|
|
|
|
[dev-dependencies]
|
|
# reth libs with arbitrary
|
|
reth-primitives = { workspace = true, features = ["arbitrary"] }
|
|
rand.workspace = true
|
|
serde_json.workspace = true
|
|
|
|
tempfile.workspace = true
|
|
test-fuzz.workspace = true
|
|
|
|
pprof = { workspace = true, features = [
|
|
"flamegraph",
|
|
"frame-pointer",
|
|
"criterion",
|
|
] }
|
|
criterion.workspace = true
|
|
iai-callgrind.workspace = true
|
|
|
|
arbitrary = { workspace = true, features = ["derive"] }
|
|
proptest.workspace = true
|
|
|
|
paste.workspace = true
|
|
|
|
assert_matches.workspace = true
|
|
|
|
[features]
|
|
default = ["mdbx"]
|
|
mdbx = [
|
|
"dep:reth-libmdbx",
|
|
"dep:eyre",
|
|
"dep:page_size",
|
|
"reth-metrics",
|
|
"dep:metrics",
|
|
"dep:strum",
|
|
"dep:rustc-hash",
|
|
]
|
|
test-utils = ["dep:tempfile", "arbitrary"]
|
|
bench = []
|
|
arbitrary = ["reth-primitives/arbitrary", "reth-db-api/arbitrary"]
|
|
optimism = []
|
|
disable-lock = []
|
|
|
|
[[bench]]
|
|
name = "hash_keys"
|
|
required-features = ["test-utils"]
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "criterion"
|
|
required-features = ["test-utils"]
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "iai"
|
|
required-features = ["test-utils"]
|
|
harness = false
|