[package]
edition = "2024"
rust-version = "1.100"
name = "agent-first-data"
version = "0.41.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Self-describing data and structured CLI contracts for AI agents — field-name suffixes for units and secrets, the afdata CLI for rendering, validation, path guards, and reading or editing structured documents (JSON, TOML, YAML, dotenv, INI, Markdown), plus libraries for Rust, Go, Python, TypeScript, and Bash."
readme = "README.md"
license = "MIT"
repository = "https://github.com/agentfirstkit/agent-first-data"
[features]
cli = []
default = [
"cli",
"tracing",
"skill-admin",
"libc",
"stream-redirect",
"yaml",
"toml",
"dotenv",
"ini",
"markdown",
"plist",
]
dotenv = []
ini = []
libc = ["dep:libc"]
markdown = ["dep:pulldown-cmark"]
plist = ["dep:plist"]
schema = []
skill = [
"dep:noyalib",
"libc",
]
skill-admin = ["skill"]
stream-redirect = ["libc"]
toml = [
"dep:toml",
"dep:toml_edit",
]
tracing = [
"dep:tracing",
"dep:tracing-subscriber",
]
yaml = ["dep:noyalib"]
[lib]
name = "agent_first_data"
path = "rust/src/lib.rs"
[[bin]]
name = "afdata"
path = "cli/src/main.rs"
required-features = ["cli"]
[[example]]
name = "afdata_bench"
path = "rust/examples/afdata_bench.rs"
[[example]]
name = "agent_cli"
path = "rust/examples/agent_cli.rs"
required-features = ["cli"]
[[example]]
name = "closed_reader"
path = "rust/examples/closed_reader.rs"
required-features = ["cli"]
[[test]]
name = "cli_document"
path = "tests/cli_document.rs"
[[test]]
name = "cli_guard"
path = "tests/cli_guard.rs"
[[test]]
name = "document_e2e"
path = "tests/document_e2e.rs"
[[test]]
name = "libc_feature"
path = "tests/libc_feature.rs"
[dependencies.jiff]
version = "1"
features = ["std"]
default-features = false
[dependencies.libc]
version = "0.2"
optional = true
[dependencies.noyalib]
version = "0.0.64"
features = ["lossless-u64"]
optional = true
[dependencies.plist]
version = "1"
optional = true
default-features = false
[dependencies.pulldown-cmark]
version = "0.13"
optional = true
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.154"
features = ["arbitrary_precision"]
[dependencies.toml]
version = "1"
optional = true
[dependencies.toml_edit]
version = "0.25"
optional = true
[dependencies.tracing]
version = "0.1"
optional = true
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"registry",
]
optional = true
[dependencies.url]
version = "2"
[dev-dependencies.tempfile]
version = "3"
[lints.clippy]
expect_used = "deny"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
uninlined_format_args = "warn"
unwrap_used = "deny"