Cargo Features

[dependencies]
commonware-storage = { version = "2026.2.0", default-features = false, features = ["std", "test-traits", "arbitrary", "fuzzing"] }
default = std

The std feature is set by default whenever commonware-storage is added without default-features = false somewhere in the dependency tree.

std default = commonware-parallel, commonware-runtime, futures, futures-util, prometheus-client, rayon, tracing, zstd

Enables optional commonware-parallel, std of anyhow, bytes, commonware-codec, commonware-cryptography, and commonware-macros and std of commonware-utils and thiserror

thiserror:

Std feature enables support for formatting std::path::{Path, PathBuf}
conveniently in an error message.

#[derive(Error, Debug)]
#[error("failed to create configuration file {path}")]
pub struct MyError {
pub path: PathBuf,
pub source: std::io::Error,
}

Without std, this would need to be written #[error("... {}", path.display())].

test-traits
arbitrary

Enables arbitrary, arbitrary of commonware-codec, commonware-cryptography, commonware-utils, and optional commonware-runtime

fuzzing

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

commonware-parallel std
commonware-runtime std
futures std
futures-util std
prometheus-client std
rayon std
tracing std
zstd std