mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
* feat(ifaces): modify DB GAT to have implicit bounds https://sabrinajewson.org/blog/the-better-alternative-to-lifetime-gats\#the-better-gats * test(ifaces): impl new trait for mock * feat(ifaces): impl db container we use that downstream to avoid consuming the db transactions when committing a stage * fix(test): explicitly define lifetime * test: ensure can spawn * test: pls review * chore: lints/warnings * feat(db): impl the new gats * test(db): try to make real db work with gats like in stages * test(db): make Stage trait take DBContainer otherwise we cannot call db.commit() gst * feat(stages): impl new traits * chore(db): cleanup tests * chore: remove unused imports
50 lines
1.0 KiB
TOML
50 lines
1.0 KiB
TOML
[package]
|
|
name = "reth-db"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/foundry-rs/reth"
|
|
readme = "README.md"
|
|
description = "Staged syncing primitives used in reth."
|
|
|
|
[dependencies]
|
|
# reth
|
|
reth-primitives = { path = "../primitives" }
|
|
reth-interfaces = { path = "../interfaces" }
|
|
|
|
# codecs
|
|
serde = { version = "1.0.*", default-features = false }
|
|
postcard = { version = "1.0.2", features = ["alloc"] }
|
|
parity-scale-codec = { version = "3.2.1", features = ["bytes"] }
|
|
|
|
# misc
|
|
bytes = "1.2.1"
|
|
libmdbx = "0.1.8"
|
|
page_size = "0.4.2"
|
|
thiserror = "1.0.37"
|
|
tempfile = { version = "3.3.0", optional = true }
|
|
eyre = "0.6.8"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.3.0"
|
|
test-fuzz = "3.0.4"
|
|
criterion = "0.4.0"
|
|
iai = "0.1.1"
|
|
tokio = { version = "1.21.2", features = ["full"] }
|
|
|
|
reth-interfaces = { path = "../interfaces",features=["bench"] }
|
|
async-trait = "0.1.58"
|
|
|
|
[features]
|
|
test-utils = ["tempfile"]
|
|
bench-postcard = ["bench"]
|
|
bench = []
|
|
|
|
[[bench]]
|
|
name = "encoding_crit"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "encoding_iai"
|
|
harness = false
|