a2a-web-client 0.2.0

Generic web client library for building A2A agent frontends
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-web-client"
version = "0.2.0"
authors = ["Emil Lindfors <emil@lindfors.no>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generic web client library for building A2A agent frontends"
readme = "README.md"
keywords = [
    "a2a",
    "agent",
    "client",
    "web",
]
categories = [
    "api-bindings",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/emillindfors/a2a-rs"
resolver = "2"

[features]
axum-components = [
    "dep:axum",
    "dep:async-stream",
]
default = ["axum-components"]

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

[[example]]
name = "basic_client"
path = "examples/basic_client.rs"

[[example]]
name = "sse_streaming"
path = "examples/sse_streaming.rs"

[dependencies.a2a-rs]
version = "0.2"
features = [
    "http-client",
    "ws-client",
    "server",
    "tracing",
]
default-features = false

[dependencies.anyhow]
version = "1.0"

[dependencies.async-stream]
version = "0.3"
optional = true

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

[dependencies.futures]
version = "0.3"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1"
features = ["time"]

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = ["v4"]

[dev-dependencies.tokio]
version = "1"
features = ["full"]