a2a-protocol-server 0.3.1

A2A protocol v1.0 — server framework (hyper-backed)
Documentation
# SPDX-License-Identifier: Apache-2.0
# Copyright 2026 Tom F. <tomf@tomtomtech.net> (https://github.com/tomtom215)

[package]
name        = "a2a-protocol-server"
version     = "0.3.1"
description = "A2A protocol v1.0 — server framework (hyper-backed)"
readme      = "README.md"

edition.workspace      = true
rust-version.workspace = true
license.workspace      = true
authors.workspace      = true
repository.workspace   = true
homepage.workspace     = true
documentation          = "https://docs.rs/a2a-protocol-server"
keywords               = ["a2a", "agent", "server", "http"]
categories             = ["network-programming", "web-programming"]

[features]
## Enable agent card signing (JWS, RFC 8785 canonicalization).
signing = ["a2a-protocol-types/signing"]
## Enable structured logging via the `tracing` crate (zero cost when disabled).
tracing = ["dep:tracing"]
## Enable SQLite-backed task and push config stores via `sqlx`.
sqlite = ["dep:sqlx"]
## Enable PostgreSQL-backed task and push config stores via `sqlx` with PostgreSQL driver.
postgres = ["dep:sqlx", "sqlx/postgres", "sqlx/json"]
## Enable WebSocket transport via `tokio-tungstenite`.
websocket = ["dep:tokio-tungstenite", "dep:futures-util"]
## Enable gRPC transport via `tonic`.
grpc = ["dep:tonic", "dep:prost", "dep:tokio-stream", "dep:tonic-build"]
## Enable OpenTelemetry integration for native OTLP export of traces and metrics.
otel = ["dep:opentelemetry", "dep:opentelemetry_sdk", "dep:opentelemetry-otlp"]
## Enable Axum framework integration (Router, extractors, IntoResponse).
axum = ["dep:axum"]

[dependencies]
a2a-protocol-types      = { version = "0.3.1", path = "../a2a-types" }
serde           = { workspace = true }
serde_json     = { workspace = true }
hyper          = { workspace = true }
http-body-util = { workspace = true }
hyper-util     = { workspace = true, features = ["server", "server-auto"] }
tokio          = { workspace = true, features = ["signal"] }
uuid           = { workspace = true }
bytes          = "1"
tokio-util     = { version = ">=0.7, <0.8", features = ["rt"] }
tracing        = { workspace = true, optional = true }
sqlx           = { workspace = true, optional = true }
tokio-tungstenite = { version = ">=0.24, <0.25", optional = true }
futures-util      = { version = ">=0.3.30, <0.4", optional = true, default-features = false, features = ["sink"] }
tonic             = { workspace = true, optional = true }
prost             = { workspace = true, optional = true }
tokio-stream      = { workspace = true, optional = true }
opentelemetry     = { version = "0.28", optional = true }
opentelemetry_sdk = { version = "0.28", optional = true, features = ["rt-tokio", "metrics"] }
opentelemetry-otlp = { version = "0.28", optional = true, default-features = false, features = ["grpc-tonic", "metrics"] }
axum = { version = "0.8", optional = true, default-features = false, features = ["json", "query", "tokio"] }

[build-dependencies]
tonic-build = { workspace = true, optional = true }

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dev-dependencies]
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "net", "time", "test-util"] }
hyper = { workspace = true }
hyper-util = { workspace = true, features = ["server", "server-auto"] }
http-body-util = { workspace = true }
bytes = "1"
serde_json = { workspace = true }
a2a-protocol-types = { version = "0.3.1", path = "../a2a-types" }
criterion = { workspace = true }
sqlx      = { workspace = true }
axum      = { version = "0.8", features = ["json", "query", "tokio"] }

[[bench]]
name = "handler_bench"
harness = false