[package]
edition = "2021"
rust-version = "1.70"
name = "aion-context"
version = "1.0.0"
authors = ["AION Context Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cryptographically-signed, versioned business-context file format"
homepage = "https://aion-context.dev"
documentation = "https://docs.rs/aion-context"
readme = "README.md"
keywords = [
"cryptography",
"versioning",
"ai",
"compliance",
"signatures",
]
categories = [
"cryptography",
"command-line-utilities",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/aion-context/aion-context"
[features]
corpus-tool = [
"dep:tar",
"dep:flate2",
]
llm-agent-example = ["dep:ureq"]
test-helpers = []
[lib]
name = "aion_context"
path = "src/lib.rs"
[[bin]]
name = "aion"
path = "src/bin/aion.rs"
[[example]]
name = "aegis_consortium"
path = "examples/aegis_consortium.rs"
[[example]]
name = "corpus_to_aion"
path = "examples/corpus_to_aion.rs"
required-features = ["corpus-tool"]
[[example]]
name = "federation_hw_attest"
path = "examples/federation_hw_attest.rs"
required-features = ["test-helpers"]
[[example]]
name = "llm_policy_agent"
path = "examples/llm_policy_agent.rs"
required-features = ["llm-agent-example"]
[[example]]
name = "policy_loop"
path = "examples/policy_loop.rs"
[[test]]
name = "cli_integration_tests"
path = "tests/cli_integration_tests.rs"
[[test]]
name = "crypto_test_vectors"
path = "tests/crypto_test_vectors.rs"
[[bench]]
name = "crypto_benchmarks"
path = "benches/crypto_benchmarks.rs"
harness = false
[[bench]]
name = "file_operations_benchmarks"
path = "benches/file_operations_benchmarks.rs"
harness = false
[[bench]]
name = "parser_benchmarks"
path = "benches/parser_benchmarks.rs"
harness = false
[[bench]]
name = "transparency_log_benchmarks"
path = "benches/transparency_log_benchmarks.rs"
harness = false
[dependencies.anyhow]
version = "1.0"
[dependencies.argon2]
version = "0.5"
[dependencies.base64]
version = "0.22"
[dependencies.blake3]
version = "1.5"
[dependencies.chacha20poly1305]
version = "0.10"
[dependencies.clap]
version = "4.5"
features = [
"derive",
"cargo",
]
[dependencies.dirs]
version = "6.0.0"
[dependencies.ed25519-dalek]
version = "2.1"
features = ["rand_core"]
[dependencies.flate2]
version = "1.0"
optional = true
[dependencies.hex]
version = "0.4"
[dependencies.hkdf]
version = "0.12"
[dependencies.hostname]
version = "0.4.0"
[dependencies.keyring]
version = "3.6"
[dependencies.memmap2]
version = "0.9"
[dependencies.pqcrypto-mldsa]
version = "0.1"
[dependencies.pqcrypto-traits]
version = "0.3"
[dependencies.rand]
version = "0.8"
[dependencies.rayon]
version = "1.10"
[dependencies.rpassword]
version = "7.4.0"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_jcs]
version = "0.2"
[dependencies.serde_json]
version = "1.0"
[dependencies.serde_yaml]
version = "0.9.34"
[dependencies.sha2]
version = "0.10"
[dependencies.subtle]
version = "2.6"
[dependencies.tar]
version = "0.4"
optional = true
[dependencies.thiserror]
version = "1.0"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
]
[dependencies.ureq]
version = "2.10"
features = [
"tls",
"json",
]
optional = true
default-features = false
[dependencies.zerocopy]
version = "0.7"
features = ["derive"]
[dependencies.zeroize]
version = "1.7"
features = ["derive"]
[dev-dependencies.arbitrary]
version = "1.3"
features = ["derive"]
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.hegeltest]
version = "0.8"
[dev-dependencies.hex]
version = "0.4"
[dev-dependencies.tempfile]
version = "3.8"
[lints.clippy]
arithmetic_side_effects = "warn"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
expect_used = "deny"
float_arithmetic = "warn"
format_in_format_args = "allow"
format_push_string = "allow"
inconsistent_digit_grouping = "allow"
indexing_slicing = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
panic = "deny"
ref_option = "allow"
struct_excessive_bools = "allow"
todo = "deny"
too_many_arguments = "allow"
unimplemented = "deny"
unnecessary_wraps = "allow"
unreachable = "deny"
unreadable_literal = "allow"
unwrap_used = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "warn"
unused_must_use = "deny"
[profile.bench]
inherits = "release"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true