[package]
edition = "2021"
name = "commonware-parallel"
version = "2026.2.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Parallelize fold operations with pluggable execution strategies."
homepage = "https://commonware.xyz"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/commonwarexyz/monorepo/tree/main/parallel"
[features]
default = ["std"]
std = [
"commonware-macros/std",
"dep:rayon",
]
[lib]
name = "commonware_parallel"
path = "src/lib.rs"
[dependencies.cfg-if]
version = "1.0.0"
[dependencies.commonware-macros]
version = "2026.2.0"
default-features = false
[dependencies.rayon]
version = "1.10.0"
optional = true
default-features = false
[dev-dependencies.proptest]
version = "1.8.0"
[lints.clippy]
disallowed_macros = "deny"
disallowed_types = "deny"
missing-const-for-fn = "warn"
option-if-let-else = "warn"
redundant-clone = "warn"
suspicious_op_assign_impl = "allow"
undocumented_unsafe_blocks = "deny"
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(generate_conformance_tests)",
"cfg(commonware_stability_BETA)",
"cfg(commonware_stability_GAMMA)",
"cfg(commonware_stability_DELTA)",
"cfg(commonware_stability_EPSILON)",
"cfg(commonware_stability_RESERVED)",
]