a2a-rust 0.1.0

Rust SDK for the A2A (Agent-to-Agent) protocol
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 = "2024"
rust-version = "1.85"
name = "a2a-rust"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK for the A2A (Agent-to-Agent) protocol"
documentation = "https://docs.rs/a2a-rust"
readme = "README.md"
keywords = [
    "a2a",
    "agent",
    "protocol",
    "sdk",
]
categories = [
    "api-bindings",
    "web-programming",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/longzhi/a2a-rust"

[package.metadata.docs.rs]
all-features = true

[features]
client = [
    "dep:futures-core",
    "dep:futures-util",
    "dep:reqwest",
]
default = [
    "server",
    "client",
]
server = [
    "dep:async-trait",
    "dep:axum",
    "dep:futures-core",
    "dep:futures-util",
    "dep:tokio",
]

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

[[example]]
name = "echo_server"
path = "examples/echo_server.rs"
required-features = ["server"]

[[example]]
name = "ping_client"
path = "examples/ping_client.rs"
required-features = ["client"]

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

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

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

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

[dependencies.async-trait]
version = "0.1"
optional = true

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.base64]
version = "0.22"

[dependencies.futures-core]
version = "0.3"
optional = true

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.http]
version = "1"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
    "stream",
]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["sync"]
optional = true

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "net",
    "rt-multi-thread",
    "time",
]

[dev-dependencies.tower]
version = "0.5"
features = ["util"]

[dev-dependencies.wiremock]
version = "0.6"