agent-client-protocol-http 0.1.1

HTTP and WebSocket transport for the Agent Client Protocol (ACP)
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"
name = "agent-client-protocol-http"
version = "0.1.1"
authors = ["Zed <hi@zed.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP and WebSocket transport for the Agent Client Protocol (ACP)"
homepage = "https://github.com/agentclientprotocol/rust-sdk"
readme = "README.md"
keywords = [
    "acp",
    "agent",
    "protocol",
    "http",
    "websocket",
]
categories = [
    "development-tools",
    "web-programming::http-server",
]
license = "Apache-2.0"
repository = "https://github.com/agentclientprotocol/rust-sdk"

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

[features]
client = [
    "dep:agent-client-protocol",
    "dep:eventsource-stream",
    "dep:futures",
    "dep:reqwest",
    "dep:serde_json",
    "dep:thiserror",
    "dep:async-tungstenite",
    "dep:tokio",
    "tokio/rt",
    "dep:tracing",
    "dep:url",
]
default = []
server = [
    "dep:agent-client-protocol",
    "dep:async-stream",
    "dep:axum",
    "dep:futures",
    "dep:serde_json",
    "dep:tokio",
    "tokio/macros",
    "tokio/rt",
    "tokio/sync",
    "dep:tower-http",
    "dep:tracing",
    "dep:uuid",
]
unstable_cancel_request = ["agent-client-protocol?/unstable_cancel_request"]

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

[dependencies.agent-client-protocol]
version = "0.15.1"
optional = true

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

[dependencies.async-tungstenite]
version = "0.34.1"
features = ["tokio-rustls-webpki-roots"]
optional = true
default-features = false

[dependencies.axum]
version = "0.8"
features = [
    "ws",
    "macros",
]
optional = true

[dependencies.eventsource-stream]
version = "0.2"
optional = true

[dependencies.futures]
version = "0.3.32"
optional = true

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

[dependencies.serde_json]
version = "1"
features = [
    "preserve_order",
    "raw_value",
]
optional = true

[dependencies.thiserror]
version = "2.0"
optional = true

[dependencies.tokio]
version = "1.52"
optional = true
default-features = false

[dependencies.tower-http]
version = "0.6"
features = ["cors"]
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.url]
version = "2.5"
optional = true

[dependencies.uuid]
version = "1.18"
features = ["v4"]
optional = true

[dev-dependencies.async-stream]
version = "0.3.6"

[dev-dependencies.async-tungstenite]
version = "0.34.1"
features = ["tokio-rustls-webpki-roots"]
default-features = false

[dev-dependencies.axum]
version = "0.8"
features = [
    "ws",
    "macros",
]

[dev-dependencies.tokio]
version = "1.52"
features = [
    "macros",
    "net",
    "rt",
    "sync",
    "time",
]
default-features = false

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]

[lints.clippy]
doc_markdown = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
needless_pass_by_value = "allow"
similar_names = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
type_complexity = "allow"
wildcard_imports = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
let-underscore = "warn"
missing_debug_implementations = "warn"

[lints.rust.future_incompatible]
level = "warn"
priority = -1

[lints.rust.nonstandard_style]
level = "warn"
priority = -1

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rust.unused]
level = "warn"
priority = -1