[package]
edition = "2021"
rust-version = "1.85"
name = "ubt"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unified Binary Tree implementation based on EIP-7864"
readme = "README.md"
keywords = [
"ethereum",
"eip-7864",
"binary-tree",
"state-tree",
]
categories = [
"cryptography",
"data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/igor53627/ubt-rs"
[features]
default = ["parallel"]
parallel = ["dep:rayon"]
serde = [
"dep:serde",
"alloy-primitives/serde",
]
simulate = [
"dep:rand",
"dep:num_cpus",
]
[lib]
name = "ubt"
path = "src/lib.rs"
[[bin]]
name = "simulate"
path = "src/bin/simulate.rs"
required-features = ["simulate"]
[[test]]
name = "integration_export"
path = "tests/integration_export.rs"
[[test]]
name = "proptests"
path = "tests/proptests.rs"
[[test]]
name = "simulation_test"
path = "tests/simulation_test.rs"
[[bench]]
name = "incremental_vs_rebuild"
path = "benches/incremental_vs_rebuild.rs"
harness = false
[[bench]]
name = "stem_vs_tree"
path = "benches/stem_vs_tree.rs"
harness = false
[dependencies.alloy-primitives]
version = "1"
[dependencies.blake3]
version = "1.5"
[dependencies.hex]
version = "0.4"
[dependencies.num_cpus]
version = "1.16"
optional = true
[dependencies.rand]
version = "0.8"
optional = true
[dependencies.rayon]
version = "1.10"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.num_cpus]
version = "1.16"
[dev-dependencies.proptest]
version = "1.4"
[dev-dependencies.rand]
version = "0.8"
[lints.clippy]
module_name_repetitions = "allow"
must_use_candidate = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[profile.release]
lto = "thin"
codegen-units = 1