rustreexo 0.6.0

A Rust implementation of Utreexo
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2018"
rust-version = "1.74.0"
name = "rustreexo"
version = "0.6.0"
authors = [
    "Calvin Kim <calvin@kcalvinalvin.info>",
    "Davidson Souza <contact@dlsouza.dev>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust implementation of Utreexo"
readme = "README.md"
keywords = [
    "accumulator",
    "bitcoin",
    "utreexo",
]
categories = [
    "algorithms",
    "cryptography::cryptocurrencies",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/mit-dci/rustreexo"

[package.metadata.rbmt.toolchains]
stable = "1.96.0"
nightly = "nightly-2026-06-23"

[package.metadata.rbmt.test]
sample_strategy = "all"
exclude_features = ["default"]
examples = [
    "stump_modify",
    "stump_modify:std",
    "stump_modify:with-serde",
    "stump_modify:with-serde std",
    "proof_update",
    "proof_update:std",
    "proof_update:with-serde",
    "proof_update:with-serde std",
    "custom_hash",
    "custom_hash:std",
    "custom_hash:with-serde",
    "custom_hash:with-serde std",
]

[package.metadata.rbmt.lint]
allowed_duplicates = []

[features]
default = ["std"]
std = [
    "bitcoin_hashes/std",
    "hex-conservative/std",
    "hashbrown/default-hasher",
]
with-serde = ["serde"]

[lib]
name = "rustreexo"
path = "src/lib.rs"

[[example]]
name = "custom_hash"
path = "examples/custom_hash.rs"

[[example]]
name = "mem_forest"
path = "examples/mem_forest.rs"

[[example]]
name = "proof_update"
path = "examples/proof_update.rs"

[[example]]
name = "stump_modify"
path = "examples/stump_modify.rs"

[[bench]]
name = "accumulator"
path = "benches/accumulator.rs"
harness = false

[[bench]]
name = "proof"
path = "benches/proof.rs"
harness = false

[[bench]]
name = "stump"
path = "benches/stump.rs"
harness = false

[dependencies.bitcoin-io]
version = "0.5.0"
features = ["alloc"]
default-features = false

[dependencies.bitcoin_hashes]
version = "0.20"
default-features = false

[dependencies.foldhash]
version = "0.2"
default-features = false

[dependencies.hashbrown]
version = "0.16.1"
default-features = false

[dependencies.hex-conservative]
version = "1"
default-features = false

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dev-dependencies.bumpalo]
version = "3.11.1"

[dev-dependencies.clap]
version = "4.5.61"

[dev-dependencies.clap_builder]
version = "4.5.61"

[dev-dependencies.clap_lex]
version = "=1.0.1"

[dev-dependencies.criterion]
version = "0.5.1"
features = ["html_reports"]

[dev-dependencies.crossbeam-epoch]
version = "0.9.20"

[dev-dependencies.errno-dragonfly]
version = "0.1.2"

[dev-dependencies.rand]
version = "0.9.3"

[dev-dependencies.rayon]
version = "1.5.3"

[dev-dependencies.regex]
version = "1.10.0"

[dev-dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1.0.81"

[lints.clippy]
use_self = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(bench)"]