[package]
edition = "2021"
rust-version = "1.93"
name = "chio-kernel"
version = "0.1.2"
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Chio runtime kernel: capability validation, guard evaluation, receipt signing"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/backbay-labs/chio"
[package.metadata.chio]
public_entrypoint = true
[features]
admission-test-support = []
default = ["delegation"]
delegation = ["chio-core-types/delegation"]
dhat-heap = []
otel = ["dep:opentelemetry-semantic-conventions"]
pq = [
"chio-core-types/pq",
"chio-core/pq",
]
tokio-console-smoke = ["tokio/tracing"]
[lib]
name = "chio_kernel"
path = "src/lib.rs"
[[test]]
name = "adversarial_inputs"
path = "tests/adversarial_inputs.rs"
[[test]]
name = "canonical_bytes_hybrid"
path = "tests/canonical_bytes_hybrid.rs"
required-features = ["pq"]
[[test]]
name = "compliance_certificate_hybrid"
path = "tests/compliance_certificate_hybrid.rs"
required-features = ["pq"]
[[test]]
name = "composite_budget_store"
path = "tests/composite_budget_store.rs"
[[test]]
name = "comptroller_surface_schema"
path = "tests/comptroller_surface_schema.rs"
[[test]]
name = "dpop"
path = "tests/dpop.rs"
[[test]]
name = "durable_admission_sqlite"
path = "tests/durable_admission_sqlite.rs"
[[test]]
name = "formal_projection"
path = "tests/formal_projection.rs"
[[test]]
name = "hybrid_receipt_sign"
path = "tests/hybrid_receipt_sign.rs"
required-features = ["pq"]
[[test]]
name = "loom_concurrency"
path = "tests/loom_concurrency.rs"
[[test]]
name = "metrics_endpoint"
path = "tests/metrics_endpoint.rs"
[[test]]
name = "otel_cardinality"
path = "tests/otel_cardinality.rs"
[[test]]
name = "passkey_capability_dispatch"
path = "tests/passkey_capability_dispatch.rs"
[[test]]
name = "pq_key_load_after_self_quote"
path = "tests/pq_key_load_after_self_quote.rs"
required-features = ["pq"]
[[test]]
name = "property_budget_store"
path = "tests/property_budget_store.rs"
[[test]]
name = "provenance_otel"
path = "tests/provenance_otel.rs"
[[test]]
name = "receipt_signing_async"
path = "tests/receipt_signing_async.rs"
[[test]]
name = "replay_proptest"
path = "tests/replay_proptest.rs"
[[test]]
name = "retention"
path = "tests/retention.rs"
[[test]]
name = "rss_shed"
path = "tests/rss_shed.rs"
[[test]]
name = "settlement_observer_byte_identity"
path = "tests/settlement_observer_byte_identity.rs"
[[test]]
name = "settlement_routing_sqlite"
path = "tests/settlement_routing_sqlite.rs"
[[test]]
name = "signer_crash"
path = "tests/signer_crash.rs"
[[test]]
name = "signing_drop_counter"
path = "tests/signing_drop_counter.rs"
[[test]]
name = "signing_queue_bound"
path = "tests/signing_queue_bound.rs"
[[test]]
name = "stream_byte_limit"
path = "tests/stream_byte_limit.rs"
[[test]]
name = "tokio_console_smoke"
path = "tests/tokio_console_smoke.rs"
required-features = ["tokio-console-smoke"]
[[test]]
name = "weights_binding"
path = "tests/weights_binding.rs"
[[test]]
name = "weights_card_refusal"
path = "tests/weights_card_refusal.rs"
[[bench]]
name = "budget_decrement"
path = "benches/budget_decrement.rs"
harness = false
[[bench]]
name = "cap_verify_ed25519"
path = "benches/cap_verify_ed25519.rs"
harness = false
[[bench]]
name = "dispatch_allow"
path = "benches/dispatch_allow.rs"
harness = false
[[bench]]
name = "dispatch_allow_dhat"
path = "benches/dispatch_allow_dhat.rs"
harness = false
required-features = ["dhat-heap"]
[[bench]]
name = "dispatch_deny"
path = "benches/dispatch_deny.rs"
harness = false
[[bench]]
name = "guard_pipeline_5"
path = "benches/guard_pipeline_5.rs"
harness = false
[[bench]]
name = "paper_security_components"
path = "benches/paper_security_components.rs"
harness = false
[[bench]]
name = "receipt_append"
path = "benches/receipt_append.rs"
harness = false
[[bench]]
name = "receipt_sign"
path = "benches/receipt_sign.rs"
harness = false
[[bench]]
name = "receipt_verify"
path = "benches/receipt_verify.rs"
harness = false
[[bench]]
name = "revocation_lookup"
path = "benches/revocation_lookup.rs"
harness = false
[[bench]]
name = "scope_match"
path = "benches/scope_match.rs"
harness = false
[[bench]]
name = "session_lookup"
path = "benches/session_lookup.rs"
harness = false
[[bench]]
name = "single_guard"
path = "benches/single_guard.rs"
harness = false
[[bench]]
name = "time_bound"
path = "benches/time_bound.rs"
harness = false
[dependencies.chio-core]
version = "=0.1.2"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.thiserror]
version = "1"
[dev-dependencies.loom]
version = "0.7"
[target.'cfg(all(target_os = "linux", not(loom)))'.dependencies.libc]
version = "0.2"
[target."cfg(loom)".dependencies.loom]
version = "0.7"
[target."cfg(not(loom))".dependencies.arc-swap]
version = "1"
[target."cfg(not(loom))".dependencies.async-trait]
version = "0.1"
[target."cfg(not(loom))".dependencies.base64]
version = "0.22"
[target."cfg(not(loom))".dependencies.chio-appraisal]
version = "=0.1.2"
[target."cfg(not(loom))".dependencies.chio-bounded]
version = "=0.1.2"
[target."cfg(not(loom))".dependencies.chio-core-types]
version = "=0.1.2"
[target."cfg(not(loom))".dependencies.chio-credit]
version = "=0.1.2"
[target."cfg(not(loom))".dependencies.chio-custody-hw]
version = "=0.1.2"
features = [
"passkey",
"sqlite-store",
]
default-features = false
[target."cfg(not(loom))".dependencies.chio-federation]
version = "=0.1.2"
[target."cfg(not(loom))".dependencies.chio-kernel-core]
version = "=0.1.2"
[target."cfg(not(loom))".dependencies.chio-link]
version = "=0.1.2"
default-features = false
[target."cfg(not(loom))".dependencies.chio-log-redact]
version = "=0.1.2"
[target."cfg(not(loom))".dependencies.chio-metrics-spec]
version = "=0.1.2"
[target."cfg(not(loom))".dependencies.chio-settle]
version = "=0.1.2"
[target."cfg(not(loom))".dependencies.chio-supervisor]
version = "=0.1.2"
[target."cfg(not(loom))".dependencies.chio-tool-call-fabric]
version = "=0.1.2"
[target."cfg(not(loom))".dependencies.chio-underwriting]
version = "=0.1.2"
[target."cfg(not(loom))".dependencies.chio-weights]
version = "=0.1.2"
[target."cfg(not(loom))".dependencies.chrono]
version = "0.4"
features = ["serde"]
[target."cfg(not(loom))".dependencies.dashmap]
version = "6"
[target."cfg(not(loom))".dependencies.futures]
version = "0.3"
[target."cfg(not(loom))".dependencies.lru]
version = "0.16.3"
[target."cfg(not(loom))".dependencies.opentelemetry-semantic-conventions]
version = "=0.29.0"
features = ["semconv_experimental"]
optional = true
default-features = false
[target."cfg(not(loom))".dependencies.rand]
version = "0.8"
[target."cfg(not(loom))".dependencies.regex]
version = "1"
[target."cfg(not(loom))".dependencies.rusqlite]
version = "0.39"
features = ["bundled"]
[target."cfg(not(loom))".dependencies.serde_json]
version = "1"
features = ["float_roundtrip"]
[target."cfg(not(loom))".dependencies.tokio]
version = "1"
features = ["full"]
[target."cfg(not(loom))".dependencies.tracing]
version = "0.1"
[target."cfg(not(loom))".dependencies.ureq]
version = "2.10"
features = ["json"]
[target."cfg(not(loom))".dependencies.uuid]
version = "1"
features = ["v7"]
[target."cfg(not(loom))".dev-dependencies.criterion]
version = "0.5"
[target."cfg(not(loom))".dev-dependencies.dhat]
version = "0.3"
[target."cfg(not(loom))".dev-dependencies.jsonschema]
version = "0.46"
features = ["resolve-file"]
default-features = false
[target."cfg(not(loom))".dev-dependencies.proptest]
version = "1.10"
[target."cfg(not(loom))".dev-dependencies.tempfile]
version = "3"
[lints.clippy]
expect_used = "deny"
unwrap_used = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(dhat)",
"cfg(loom)",
"cfg(chio_kernel_loom)",
]