agent-client-protocol 0.11.0

Core protocol types and traits for the Agent Client 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"
name = "agent-client-protocol"
version = "0.11.0"
authors = ["Zed <hi@zed.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core protocol types and traits for the Agent Client Protocol"
homepage = "https://github.com/agentclientprotocol/rust-sdk"
readme = "README.md"
keywords = [
    "acp",
    "agent",
    "protocol",
    "ai",
]
categories = ["development-tools"]
license = "Apache-2.0"
repository = "https://github.com/agentclientprotocol/rust-sdk"

[features]
default = []
unstable = [
    "unstable_auth_methods",
    "unstable_boolean_config",
    "unstable_logout",
    "unstable_message_id",
    "unstable_session_additional_directories",
    "unstable_session_close",
    "unstable_session_fork",
    "unstable_session_model",
    "unstable_session_resume",
    "unstable_session_usage",
]
unstable_auth_methods = ["agent-client-protocol-schema/unstable_auth_methods"]
unstable_boolean_config = ["agent-client-protocol-schema/unstable_boolean_config"]
unstable_logout = ["agent-client-protocol-schema/unstable_logout"]
unstable_message_id = ["agent-client-protocol-schema/unstable_message_id"]
unstable_session_additional_directories = ["agent-client-protocol-schema/unstable_session_additional_directories"]
unstable_session_close = ["agent-client-protocol-schema/unstable_session_close"]
unstable_session_fork = ["agent-client-protocol-schema/unstable_session_fork"]
unstable_session_model = ["agent-client-protocol-schema/unstable_session_model"]
unstable_session_resume = ["agent-client-protocol-schema/unstable_session_resume"]
unstable_session_usage = ["agent-client-protocol-schema/unstable_session_usage"]

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

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

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

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

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

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

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

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

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

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

[dependencies.agent-client-protocol-derive]
version = "0.11.0"

[dependencies.agent-client-protocol-schema]
version = "=0.12.0"
features = ["tracing"]

[dependencies.anyhow]
version = "1.0"

[dependencies.boxfnonce]
version = "0.1.1"

[dependencies.futures]
version = "0.3.32"

[dependencies.futures-concurrency]
version = "7.6.3"

[dependencies.jsonrpcmsg]
version = "0.1.2"

[dependencies.rmcp]
version = "1.2.0"
features = [
    "server",
    "transport-io",
    "schemars",
    "server",
]

[dependencies.rustc-hash]
version = "2.1.1"

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

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

[dependencies.serde_json]
version = "1"
features = ["raw_value"]

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.48"
features = ["full"]

[dependencies.tokio-util]
version = "0.7"
features = ["compat"]

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.clap]
version = "4.5"
features = ["derive"]

[dev-dependencies.expect-test]
version = "1.5"

[dev-dependencies.shell-words]
version = "1.1"

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

[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