budget-context 0.1.1

Hierarchical resource budgets for concurrent Rust task trees
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 = "2024"
rust-version = "1.85"
name = "budget-context"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hierarchical resource budgets for concurrent Rust task trees"
homepage = "https://github.com/thinkgrid-labs/budget-context"
documentation = "https://docs.rs/budget-context"
readme = "README.md"
keywords = [
    "budget",
    "resource",
    "async",
    "agents",
    "quota",
]
categories = [
    "asynchronous",
    "concurrency",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/thinkgrid-labs/budget-context"

[package.metadata.docs.rs]
all-features = true

[features]
default = []
serde = ["dep:serde"]
tokio = [
    "dep:tokio",
    "dep:tokio-util",
]
tracing = ["dep:tracing"]

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

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

[[test]]
name = "accounting"
path = "tests/accounting.rs"

[[test]]
name = "concurrency"
path = "tests/concurrency.rs"

[[test]]
name = "hierarchy"
path = "tests/hierarchy.rs"

[[test]]
name = "loom_model"
path = "tests/loom_model.rs"

[[test]]
name = "properties"
path = "tests/properties.rs"

[[test]]
name = "public_api"
path = "tests/public_api.rs"

[[test]]
name = "reservations"
path = "tests/reservations.rs"

[[test]]
name = "serde"
path = "tests/serde.rs"

[[test]]
name = "tokio_runtime"
path = "tests/tokio_runtime.rs"

[[test]]
name = "tracing"
path = "tests/tracing.rs"

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

[dependencies.serde]
version = "1"
features = [
    "derive",
    "rc",
]
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "time",
]
optional = true

[dependencies.tokio-util]
version = "0.7"
features = ["rt"]
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dev-dependencies.criterion]
version = "0.7"

[dev-dependencies.loom]
version = "0.7"

[dev-dependencies.proptest]
version = "1"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "time",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"

[lints.clippy]
all = "deny"
pedantic = "deny"

[lints.rust]
missing_docs = "deny"
unsafe_code = "forbid"