commonware-runtime 2026.2.0

Execute asynchronous tasks with a configurable scheduler.
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 = "2021"
name = "commonware-runtime"
version = "2026.2.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Execute asynchronous tasks with a configurable scheduler."
homepage = "https://commonware.xyz"
documentation = "https://docs.rs/commonware-runtime"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/commonwarexyz/monorepo/tree/main/runtime"

[features]
arbitrary = [
    "commonware-codec/arbitrary",
    "commonware-cryptography/arbitrary",
    "commonware-utils/arbitrary",
    "dep:arbitrary",
    "dep:commonware-conformance",
]
default = []
external = ["pin-project"]
iouring = [
    "iouring-network",
    "iouring-storage",
]
iouring-network = ["io-uring"]
iouring-storage = ["io-uring"]
test-utils = []
tokio-console = [
    "dep:console-subscriber",
    "tokio/tracing",
]

[lib]
name = "commonware_runtime"
crate-type = [
    "rlib",
    "cdylib",
]
path = "src/lib.rs"
bench = false

[[bench]]
name = "buffer_paged"
path = "src/utils/buffer/benches/bench.rs"
harness = false

[dependencies.arbitrary]
version = "1.4.1"
optional = true

[dependencies.async-lock]
version = "3.4.0"

[dependencies.bytes]
version = "1.7.1"
default-features = false

[dependencies.cfg-if]
version = "1.0.0"

[dependencies.commonware-codec]
version = "2026.2.0"
default-features = false

[dependencies.commonware-conformance]
version = "2026.2.0"
optional = true

[dependencies.commonware-cryptography]
version = "2026.2.0"
features = ["std"]
default-features = false

[dependencies.commonware-macros]
version = "2026.2.0"
features = ["std"]
default-features = false

[dependencies.commonware-parallel]
version = "2026.2.0"
features = ["std"]
default-features = false

[dependencies.commonware-utils]
version = "2026.2.0"
features = ["std"]
default-features = false

[dependencies.crossbeam-queue]
version = "0.3.12"

[dependencies.futures]
version = "0.3.31"

[dependencies.governor]
version = "0.10.2"

[dependencies.io-uring]
version = "0.7.4"
optional = true

[dependencies.libc]
version = "0.2.172"

[dependencies.opentelemetry]
version = "0.31.0"

[dependencies.pin-project]
version = "1.1.10"
optional = true

[dependencies.prometheus-client]
version = "0.24.0"

[dependencies.rand]
version = "0.8.5"
default-features = false

[dependencies.rand_core]
version = "0.6.4"

[dependencies.rayon]
version = "1.10.0"
default-features = false

[dependencies.sha2]
version = "0.10.8"
default-features = false

[dependencies.sysinfo]
version = "0.37.2"

[dependencies.thiserror]
version = "2.0.12"
default-features = false

[dependencies.tracing]
version = "0.1.41"

[dependencies.tracing-opentelemetry]
version = "0.32.0"

[dependencies.tracing-subscriber]
version = "0.3.19"
features = [
    "fmt",
    "json",
    "env-filter",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.axum]
version = "0.8.1"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.console-subscriber]
version = "0.5.0"
features = ["parking_lot"]
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.criterion]
version = "0.7.0"
features = ["async"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.opentelemetry-otlp]
version = "0.31.0"
features = ["http-proto"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.opentelemetry_sdk]
version = "0.31.0"
features = ["rt-tokio"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.43.0"
features = ["full"]

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2.15"
features = ["js"]

[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)",
]