[package]
edition = "2024"
rust-version = "1.97"
name = "polyc-a2a"
version = "2026.9.0"
authors = ["Official Unofficial, Inc."]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "polychrome A2A edge: serves a domain-signed Agent Card and drives message/send tasks onto a turn."
readme = false
license = "Apache-2.0 OR MIT"
repository = "https://github.com/officialunofficial/polychrome"
resolver = "2"
[package.metadata.polychrome]
layer = "container"
edge = true
edge_allow = ["crypto"]
plane_role = "edge"
[features]
test-util = []
[lib]
name = "polyc_a2a"
path = "src/lib.rs"
[[bin]]
name = "polychrome-a2a"
path = "src/main.rs"
[[test]]
name = "agent_card"
path = "tests/agent_card.rs"
[[test]]
name = "auth"
path = "tests/auth.rs"
[[test]]
name = "message_send"
path = "tests/message_send.rs"
[[test]]
name = "unconfigured"
path = "tests/unconfigured.rs"
[dependencies.anyhow]
version = "1"
[dependencies.async-stream]
version = "0.3"
[dependencies.axum]
version = "0.8"
features = ["macros"]
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
features = [
"std",
"alloc",
]
default-features = false
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
[dependencies.connectrpc]
version = "0.9.0"
features = [
"axum",
"server",
"client",
"client-tls",
"server-tls",
]
[dependencies.figment]
version = "0.11"
features = [
"toml",
"env",
]
package = "figment2"
[dependencies.futures]
version = "0.3"
[dependencies.hex]
version = "0.4"
[dependencies.polyc-crypto]
version = "=2026.9.0"
[dependencies.polyc-proto]
version = "=2026.9.0"
[dependencies.polyc-rpc-client]
version = "=2026.9.0"
[dependencies.polyc-runtime]
version = "=2026.9.0"
[dependencies.reqwest]
version = "0.13.4"
features = [
"rustls",
"json",
"stream",
]
default-features = false
[dependencies.rustls]
version = "0.23"
features = ["ring"]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.subtle]
version = "2"
[dependencies.sysexits]
version = "0.13"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"signal",
"time",
"sync",
"net",
]
[dependencies.tokio-util]
version = "0.7"
features = ["rt"]
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1"
features = [
"v4",
"v5",
"v7",
"v4",
"v7",
]
[dev-dependencies.figment]
version = "0.11"
features = [
"toml",
"env",
"test",
]
package = "figment2"
[dev-dependencies.http]
version = "1"
[dev-dependencies.http-body-util]
version = "0.1"
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"net",
"time",
]
[dev-dependencies.tower]
version = "0.5"
features = ["util"]
[lints.clippy]
dbg_macro = "deny"
module_name_repetitions = "allow"
redundant_pub_crate = "allow"
unwrap_used = "deny"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "deny"
unreachable_pub = "warn"
unsafe_code = "forbid"
[lints.rustdoc]
all = "warn"