[package]
edition = "2021"
rust-version = "1.93"
name = "chio-core-types"
version = "0.1.2"
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared Chio substrate types for capability, receipt, manifest, and session boundaries"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/backbay-labs/chio"
[features]
default = ["std"]
delegation = []
delegation_v2 = ["delegation"]
fips = [
"dep:aws-lc-rs",
"std",
]
pq = ["dep:fips204"]
std = [
"serde/std",
"serde_json/std",
"ed25519-dalek/std",
"rand_core/std",
"sha2/std",
"hex/std",
"percent-encoding/std",
"url/std",
"dep:thiserror",
]
[lib]
name = "chio_core_types"
path = "src/lib.rs"
[[test]]
name = "_generated_check"
path = "tests/_generated_check.rs"
[[test]]
name = "canonical_bytes_vectors"
path = "tests/canonical_bytes_vectors.rs"
[[test]]
name = "canonical_signature_boundary"
path = "tests/canonical_signature_boundary.rs"
[[test]]
name = "capability_constraint_variants"
path = "tests/capability_constraint_variants.rs"
[[test]]
name = "capability_hybrid"
path = "tests/capability_hybrid.rs"
[[test]]
name = "claim_registry_integrity"
path = "tests/claim_registry_integrity.rs"
[[test]]
name = "hybrid_bitflip"
path = "tests/hybrid_bitflip.rs"
[[test]]
name = "no_std_build"
path = "tests/no_std_build.rs"
[[test]]
name = "property_capability_algebra"
path = "tests/property_capability_algebra.rs"
[[test]]
name = "protocol_error_registry"
path = "tests/protocol_error_registry.rs"
[[test]]
name = "protocol_primitives_generated"
path = "tests/protocol_primitives_generated.rs"
[[test]]
name = "receipt_tenant_id"
path = "tests/receipt_tenant_id.rs"
[[test]]
name = "signed_artifact_schema"
path = "tests/signed_artifact_schema.rs"
[[test]]
name = "signer_binding"
path = "tests/signer_binding.rs"
[[test]]
name = "threat_model_artifacts"
path = "tests/threat_model_artifacts.rs"
[[test]]
name = "verified_outcome_request"
path = "tests/verified_outcome_request.rs"
[[test]]
name = "wire_protocol_schema"
path = "tests/wire_protocol_schema.rs"
[dependencies.aws-lc-rs]
version = "1.16"
features = ["aws-lc-sys"]
optional = true
default-features = false
[dependencies.ed25519-dalek]
version = "2"
features = [
"rand_core",
"zeroize",
"alloc",
]
default-features = false
[dependencies.fips204]
version = "0.4.6"
features = ["ml-dsa-65"]
optional = true
default-features = false
[dependencies.hex]
version = "0.4"
features = ["alloc"]
default-features = false
[dependencies.percent-encoding]
version = "2"
features = ["alloc"]
default-features = false
[dependencies.rand_core]
version = "0.6"
features = ["getrandom"]
default-features = false
[dependencies.ryu]
version = "1"
default-features = false
[dependencies.serde]
version = "1"
features = [
"derive",
"alloc",
]
default-features = false
[dependencies.serde_json]
version = "1"
features = [
"alloc",
"float_roundtrip",
]
default-features = false
[dependencies.sha2]
version = "0.10"
default-features = false
[dependencies.thiserror]
version = "1"
optional = true
[dependencies.url]
version = "2"
default-features = false
[dev-dependencies.jsonschema]
version = "0.46.0"
default-features = false
[dev-dependencies.proptest]
version = "1.10"
[dev-dependencies.regress]
version = "0.10.5"
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]
[lints.clippy]
expect_used = "deny"
unwrap_used = "deny"