[package]
edition = "2021"
name = "commonware-storage"
version = "2026.7.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Persist and retrieve data from an abstract store."
homepage = "https://commonware.xyz"
documentation = "https://docs.rs/commonware-storage"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/commonwarexyz/monorepo/tree/main/storage"
[package.metadata.cargo-udeps.ignore]
development = [
"commonware-bench",
"gungraun",
"rand_distr",
]
[features]
arbitrary = [
"commonware-codec/arbitrary",
"commonware-cryptography/arbitrary",
"commonware-runtime?/arbitrary",
"commonware-utils/arbitrary",
"dep:arbitrary",
]
default = ["std"]
fuzzing = ["test-utils"]
std = [
"ahash/runtime-rng",
"ahash/std",
"anyhow/std",
"bytes/std",
"commonware-codec/std",
"commonware-cryptography/std",
"commonware-formatting/std",
"commonware-macros/std",
"commonware-parallel/std",
"commonware-runtime",
"commonware-utils/std",
"futures",
"futures-util",
"futures-util/std",
"thiserror/std",
"tracing",
"zstd",
]
test-traits = []
test-utils = []
[lib]
name = "commonware_storage"
path = "src/lib.rs"
bench = false
[[bench]]
name = "archive"
path = "src/archive/benches/bench.rs"
harness = false
[[bench]]
name = "bmt"
path = "src/bmt/benches/bench.rs"
harness = false
[[bench]]
name = "constantinople"
path = "src/qmdb/benches/constantinople.rs"
harness = false
[[bench]]
name = "freezer"
path = "src/freezer/benches/bench.rs"
harness = false
[[bench]]
name = "index"
path = "src/index/benches/bench.rs"
harness = false
[[bench]]
name = "index_scale"
path = "src/index/benches/scale.rs"
harness = false
[[bench]]
name = "init_scale"
path = "src/qmdb/benches/init_scale.rs"
harness = false
required-features = ["test-traits"]
[[bench]]
name = "journal"
path = "src/journal/benches/bench.rs"
harness = false
[[bench]]
name = "merkle"
path = "src/merkle/benches/bench.rs"
harness = false
[[bench]]
name = "metadata"
path = "src/metadata/benches/bench.rs"
harness = false
[[bench]]
name = "ordinal"
path = "src/ordinal/benches/bench.rs"
harness = false
[[bench]]
name = "qmdb"
path = "src/qmdb/benches/bench.rs"
harness = false
required-features = ["test-traits"]
[[bench]]
name = "qmdb_gungraun"
path = "src/qmdb/benches/bench_gungraun.rs"
harness = false
required-features = ["test-traits"]
[[bench]]
name = "rmap"
path = "src/rmap/benches/bench.rs"
harness = false
[dependencies.ahash]
version = "0.8.12"
features = ["no-rng"]
default-features = false
[dependencies.anyhow]
version = "1.0.99"
default-features = false
[dependencies.arbitrary]
version = "1.4.1"
features = ["derive"]
optional = true
[dependencies.bytes]
version = "1.7.1"
default-features = false
[dependencies.cfg-if]
version = "1.0.0"
[dependencies.commonware-codec]
version = "2026.7.0"
default-features = false
[dependencies.commonware-cryptography]
version = "2026.7.0"
default-features = false
[dependencies.commonware-formatting]
version = "2026.7.0"
default-features = false
[dependencies.commonware-macros]
version = "2026.7.0"
default-features = false
[dependencies.commonware-parallel]
version = "2026.7.0"
default-features = false
[dependencies.commonware-runtime]
version = "2026.7.0"
optional = true
[dependencies.commonware-utils]
version = "2026.7.0"
default-features = false
[dependencies.futures]
version = "0.3.31"
optional = true
[dependencies.futures-util]
version = "0.3.31"
features = ["std"]
optional = true
default-features = false
[dependencies.hashbrown]
version = "0.16.1"
features = ["default-hasher"]
default-features = false
[dependencies.thiserror]
version = "2.0.12"
default-features = false
[dependencies.tracing]
version = "0.1.41"
optional = true
[dependencies.zstd]
version = "0.13.2"
optional = true
[dev-dependencies.commonware-bench]
version = "2026.7.0"
[dev-dependencies.commonware-conformance]
version = "2026.7.0"
[dev-dependencies.commonware-math]
version = "2026.7.0"
default-features = false
[dev-dependencies.commonware-runtime]
version = "2026.7.0"
features = ["test-utils"]
[dev-dependencies.criterion]
version = "0.7.0"
[dev-dependencies.paste]
version = "1.0.15"
[dev-dependencies.rand]
version = "0.10.2"
features = ["alloc"]
default-features = false
[dev-dependencies.rand_distr]
version = "0.6.0"
[dev-dependencies.rstest]
version = "0.26.1"
[dev-dependencies.tracing-subscriber]
version = "0.3.19"
[target.'cfg(target_os = "linux")'.dev-dependencies.commonware-bench]
version = "2026.7.0"
features = ["gungraun"]
[target.'cfg(target_os = "linux")'.dev-dependencies.gungraun]
version = "0.19.1"
features = ["client_requests"]
[lints.clippy]
disallowed_macros = "deny"
disallowed_methods = "deny"
disallowed_types = "deny"
large_futures = "warn"
missing-const-for-fn = "warn"
option-if-let-else = "warn"
redundant-clone = "warn"
suspicious_op_assign_impl = "allow"
undocumented_unsafe_blocks = "deny"
unused-async = "warn"
use-self = "warn"
[lints.rust]
rust-2018-idioms = "deny"
unused-must-use = "deny"
warnings = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(full_bench)",
"cfg(huge_bench)",
"cfg(benchmark_tracking)",
"cfg(generate_conformance_tests)",
"cfg(commonware_stability_BETA)",
"cfg(commonware_stability_GAMMA)",
"cfg(commonware_stability_DELTA)",
"cfg(commonware_stability_EPSILON)",
"cfg(commonware_stability_RESERVED)",
]