a2a-protocol-server 0.3.1

A2A protocol v1.0 — server framework (hyper-backed)
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.93"
name = "a2a-protocol-server"
version = "0.3.1"
authors = ["Tom F."]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A2A protocol v1.0 — server framework (hyper-backed)"
homepage = "https://github.com/tomtom215/a2a-rust"
documentation = "https://docs.rs/a2a-protocol-server"
readme = "README.md"
keywords = [
    "a2a",
    "agent",
    "server",
    "http",
]
categories = [
    "network-programming",
    "web-programming",
]
license = "Apache-2.0"
repository = "https://github.com/tomtom215/a2a-rust"

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

[features]
axum = ["dep:axum"]
grpc = [
    "dep:tonic",
    "dep:prost",
    "dep:tokio-stream",
    "dep:tonic-build",
]
otel = [
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
    "dep:opentelemetry-otlp",
]
postgres = [
    "dep:sqlx",
    "sqlx/postgres",
    "sqlx/json",
]
signing = ["a2a-protocol-types/signing"]
sqlite = ["dep:sqlx"]
tracing = ["dep:tracing"]
websocket = [
    "dep:tokio-tungstenite",
    "dep:futures-util",
]

[lib]
name = "a2a_protocol_server"
path = "src/lib.rs"

[[test]]
name = "audit_tests"
path = "tests/audit_tests/main.rs"

[[test]]
name = "axum_adapter_tests"
path = "tests/axum_adapter_tests.rs"

[[test]]
name = "dispatch_edge_tests"
path = "tests/dispatch_edge_tests.rs"

[[test]]
name = "dispatch_rest_coverage"
path = "tests/dispatch_rest_coverage.rs"

[[test]]
name = "dispatch_tests"
path = "tests/dispatch_tests/main.rs"

[[test]]
name = "dynamic_handler_tests"
path = "tests/dynamic_handler_tests.rs"

[[test]]
name = "edge_case_tests"
path = "tests/edge_case_tests/main.rs"

[[test]]
name = "event_processing_tests"
path = "tests/event_processing_tests/main.rs"

[[test]]
name = "event_queue_tests"
path = "tests/event_queue_tests.rs"

[[test]]
name = "grpc_dispatch_tests"
path = "tests/grpc_dispatch_tests.rs"

[[test]]
name = "handler_tests"
path = "tests/handler_tests/main.rs"

[[test]]
name = "hardening_tests"
path = "tests/hardening_tests/main.rs"

[[test]]
name = "interceptor_tests"
path = "tests/interceptor_tests.rs"

[[test]]
name = "jsonrpc_dispatch_coverage_tests"
path = "tests/jsonrpc_dispatch_coverage_tests.rs"

[[test]]
name = "jsonrpc_edge_tests"
path = "tests/jsonrpc_edge_tests.rs"

[[test]]
name = "push_config_tests"
path = "tests/push_config_tests.rs"

[[test]]
name = "push_sender_tests"
path = "tests/push_sender_tests.rs"

[[test]]
name = "rest_edge_tests"
path = "tests/rest_edge_tests.rs"

[[test]]
name = "send_sync_tests"
path = "tests/send_sync_tests.rs"

[[test]]
name = "serve_tests"
path = "tests/serve_tests.rs"

[[test]]
name = "sqlite_store_tests"
path = "tests/sqlite_store_tests.rs"

[[test]]
name = "sse_format_tests"
path = "tests/sse_format_tests.rs"

[[test]]
name = "state_validation_tests"
path = "tests/state_validation_tests.rs"

[[test]]
name = "store_tests"
path = "tests/store_tests.rs"

[[test]]
name = "streaming_tests"
path = "tests/streaming_tests.rs"

[[test]]
name = "stress_tests"
path = "tests/stress_tests.rs"

[[test]]
name = "tenant_sqlite_push_config_tests"
path = "tests/tenant_sqlite_push_config_tests.rs"

[[test]]
name = "tenant_sqlite_store_tests"
path = "tests/tenant_sqlite_store_tests.rs"

[[test]]
name = "tenant_store_tests"
path = "tests/tenant_store_tests.rs"

[[test]]
name = "validation_edge_tests"
path = "tests/validation_edge_tests.rs"

[[test]]
name = "websocket_tests"
path = "tests/websocket_tests.rs"

[[bench]]
name = "handler_bench"
path = "benches/handler_bench.rs"
harness = false

[dependencies.a2a-protocol-types]
version = "0.3.1"

[dependencies.axum]
version = "0.8"
features = [
    "json",
    "query",
    "tokio",
]
optional = true
default-features = false

[dependencies.bytes]
version = "1"

[dependencies.futures-util]
version = ">=0.3.30, <0.4"
features = ["sink"]
optional = true
default-features = false

[dependencies.http-body-util]
version = ">=0.1, <0.2"

[dependencies.hyper]
version = ">=1.4, <2"
features = [
    "client",
    "server",
    "http1",
    "http2",
]

[dependencies.hyper-util]
version = ">=0.1.6, <0.2"
features = [
    "client",
    "client-legacy",
    "http1",
    "http2",
    "tokio",
    "server",
    "server-auto",
]

[dependencies.opentelemetry]
version = "0.28"
optional = true

[dependencies.opentelemetry-otlp]
version = "0.28"
features = [
    "grpc-tonic",
    "metrics",
]
optional = true
default-features = false

[dependencies.opentelemetry_sdk]
version = "0.28"
features = [
    "rt-tokio",
    "metrics",
]
optional = true

[dependencies.prost]
version = "0.13"
optional = true

[dependencies.serde]
version = ">=1.0.200, <2"
features = ["derive"]

[dependencies.serde_json]
version = ">=1.0.115, <2"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "sqlite",
]
optional = true
default-features = false

[dependencies.tokio]
version = ">=1.38, <2"
features = [
    "rt",
    "net",
    "io-util",
    "sync",
    "time",
    "macros",
    "signal",
]

[dependencies.tokio-stream]
version = "0.1"
optional = true

[dependencies.tokio-tungstenite]
version = ">=0.24, <0.25"
optional = true

[dependencies.tokio-util]
version = ">=0.7, <0.8"
features = ["rt"]

[dependencies.tonic]
version = "0.12"
optional = true

[dependencies.tracing]
version = ">=0.1.40, <0.2"
optional = true

[dependencies.uuid]
version = ">=1.8, <2"
features = ["v4"]

[dev-dependencies.a2a-protocol-types]
version = "0.3.1"

[dev-dependencies.axum]
version = "0.8"
features = [
    "json",
    "query",
    "tokio",
]

[dev-dependencies.bytes]
version = "1"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.http-body-util]
version = ">=0.1, <0.2"

[dev-dependencies.hyper]
version = ">=1.4, <2"
features = [
    "client",
    "server",
    "http1",
    "http2",
]

[dev-dependencies.hyper-util]
version = ">=0.1.6, <0.2"
features = [
    "client",
    "client-legacy",
    "http1",
    "http2",
    "tokio",
    "server",
    "server-auto",
]

[dev-dependencies.serde_json]
version = ">=1.0.115, <2"

[dev-dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "sqlite",
]
default-features = false

[dev-dependencies.tokio]
version = ">=1.38, <2"
features = [
    "rt",
    "net",
    "io-util",
    "sync",
    "time",
    "macros",
    "macros",
    "rt-multi-thread",
    "net",
    "time",
    "test-util",
]

[build-dependencies.tonic-build]
version = "0.12"
optional = true