[package]
name = "chio-kernel"
description = "Chio runtime kernel: capability validation, guard evaluation, receipt signing"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
readme = "README.md"
publish = ["crates-io"]
autobenches = false
[package.metadata.chio]
public_entrypoint = true
[lib]
name = "chio_kernel"
[features]
default = ["delegation"]
dhat-heap = []
admission-test-support = []
otel = ["dep:opentelemetry-semantic-conventions"]
tokio-console-smoke = ["tokio/tracing"]
pq = ["chio-core-types/pq", "chio-core/pq"]
delegation = ["chio-core-types/delegation"]
[dependencies]
chio-core = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
[target.'cfg(loom)'.dependencies]
loom = { workspace = true }
[target.'cfg(not(loom))'.dependencies]
chio-appraisal = { workspace = true }
chio-bounded = { workspace = true }
chio-supervisor = { workspace = true }
chio-core-types = { workspace = true }
chio-custody-hw = { workspace = true, features = ["passkey", "sqlite-store"] }
chio-weights = { workspace = true }
chrono = { workspace = true, features = ["serde"] }
chio-kernel-core = { workspace = true }
chio-credit = { workspace = true }
chio-federation = { workspace = true }
chio-link = { version = "=0.1.2", path = "../../economy/chio-link", default-features = false }
chio-log-redact = { workspace = true }
chio-metrics-spec = { workspace = true }
chio-tool-call-fabric = { workspace = true }
lru = "0.16.3"
chio-settle = { workspace = true }
arc-swap = { workspace = true }
async-trait = { workspace = true }
dashmap = { workspace = true }
futures = "0.3"
regex = "1"
serde_json = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
opentelemetry-semantic-conventions = { workspace = true, optional = true }
rusqlite = { workspace = true }
chio-underwriting = { workspace = true }
uuid = { workspace = true, features = ["v7"] }
ureq = { version = "2.10", features = ["json"] }
rand = { workspace = true }
base64 = { workspace = true }
[target.'cfg(all(target_os = "linux", not(loom)))'.dependencies]
libc = "0.2"
[dev-dependencies]
loom = { workspace = true }
[target.'cfg(not(loom))'.dev-dependencies]
chio-store-sqlite = { path = "../../platform/chio-store-sqlite" }
chio-test-support = { path = "../../tooling/chio-test-support" }
criterion = { workspace = true }
dhat = { workspace = true }
jsonschema = { workspace = true }
tempfile = { workspace = true }
proptest = { workspace = true }
[[bench]]
name = "cap_verify_ed25519"
harness = false
[[bench]]
name = "scope_match"
harness = false
[[bench]]
name = "time_bound"
harness = false
[[bench]]
name = "revocation_lookup"
harness = false
[[bench]]
name = "budget_decrement"
harness = false
[[bench]]
name = "single_guard"
harness = false
[[bench]]
name = "guard_pipeline_5"
harness = false
[[bench]]
name = "receipt_sign"
harness = false
[[bench]]
name = "paper_security_components"
harness = false
[[bench]]
name = "receipt_verify"
harness = false
[[bench]]
name = "receipt_append"
harness = false
[[bench]]
name = "session_lookup"
harness = false
[[bench]]
name = "dispatch_allow"
harness = false
[[bench]]
name = "dispatch_allow_dhat"
harness = false
required-features = ["dhat-heap"]
[[bench]]
name = "dispatch_deny"
harness = false
[[test]]
name = "replay_proptest"
path = "tests/replay_proptest.rs"
[[test]]
name = "tokio_console_smoke"
path = "tests/tokio_console_smoke.rs"
required-features = ["tokio-console-smoke"]
[[test]]
name = "hybrid_receipt_sign"
path = "tests/hybrid_receipt_sign.rs"
required-features = ["pq"]
[[test]]
name = "compliance_certificate_hybrid"
path = "tests/compliance_certificate_hybrid.rs"
required-features = ["pq"]
[[test]]
name = "pq_key_load_after_self_quote"
path = "tests/pq_key_load_after_self_quote.rs"
required-features = ["pq"]
[[test]]
name = "canonical_bytes_hybrid"
path = "tests/canonical_bytes_hybrid.rs"
required-features = ["pq"]
[lints.clippy]
unwrap_used = "deny"
expect_used = "deny"
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(dhat)", "cfg(loom)", "cfg(chio_kernel_loom)"] }