Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
117 lines (102 loc) · 4.31 KB
/
Copy pathCargo.toml
File metadata and controls
117 lines (102 loc) · 4.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[workspace]
members = [
"src/agent-client-protocol",
"src/agent-client-protocol-derive",
# Keep polyfill and rmcp before conductor: release-plz currently ignores versioned
# dev-dependency edges, but cargo publish still validates them.
"src/agent-client-protocol-polyfill",
"src/agent-client-protocol-rmcp",
"src/agent-client-protocol-conductor",
"src/agent-client-protocol-http",
"src/agent-client-protocol-test",
"src/agent-client-protocol-trace-viewer",
"src/yopo",
# Keep cookbook last: release-plz currently ignores versioned
# dev-dependency edges, but cargo publish still validates them.
"src/agent-client-protocol-cookbook",
]
resolver = "3"
[workspace.package]
authors = ["Zed <hi@zed.dev>"]
edition = "2024"
rust-version = "1.88.0"
license = "Apache-2.0"
repository = "https://github.com/agentclientprotocol/rust-sdk"
[workspace.dependencies]
# Internal crates
agent-client-protocol = { path = "src/agent-client-protocol", version = "5.5.1" }
# Exact pin: the derive output calls `agent_client_protocol::__private`, which
# only matches the derive crate released with the same core version.
agent-client-protocol-derive = { path = "src/agent-client-protocol-derive", version = "=5.5.1" }
agent-client-protocol-polyfill = { path = "src/agent-client-protocol-polyfill", version = "5.5.1" }
agent-client-protocol-rmcp = { path = "src/agent-client-protocol-rmcp", version = "5.5.1" }
agent-client-protocol-test = { path = "src/agent-client-protocol-test", default-features = false }
agent-client-protocol-trace-viewer = { path = "src/agent-client-protocol-trace-viewer", version = "5.5.1" }
yopo = { package = "agent-client-protocol-yopo", path = "src/yopo" }
# Protocol
agent-client-protocol-schema = { version = "=1.21.2", default-features = false }
# Core async runtime
tokio = { version = "1.52", default-features = false }
rustix = { version = "1", default-features = false, features = ["std", "process"] }
tokio-util = { version = "0.7", features = ["compat"] }
async-tungstenite = { version = "0.35.0", default-features = false, features = ["tokio-rustls-webpki-roots"] }
# Serialization
base64 = "0.23"
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = { version = "1", features = ["preserve_order", "raw_value"] }
schemars = { version = "1.0", features = ["derive"] }
# UUID generation
uuid = { version = "1.18", features = ["v4"] }
# Error handling
anyhow = "1.0"
thiserror = "2.0"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# MCP SDK
rmcp = { version = "3.4.0", default-features = false, features = ["server", "schemars"] }
# CLI parsing
clap = { version = "4.5", features = ["derive"] }
# HTTP
# Keep serving and observability shared; consumers opt into extractors and WebSockets.
axum = { version = "0.8", default-features = false, features = ["http1", "tokio", "tracing", "tower-log"] }
reqwest = { version = "0.13", default-features = false, features = ["rustls", "json"] }
eventsource-stream = "0.2"
url = "2.5"
async-io = "2"
async-process = "2"
async-stream = "0.3.6"
blocking = "1"
chrono = "0.4"
futures = { version = "0.3.32", default-features = false, features = ["std", "async-await"] }
futures-concurrency = "7.6.3"
open = "5"
rustc-hash = "2.1.1"
shell-words = "1.1"
strip-ansi-escapes = "0.2"
tower = { version = "0.5", features = ["util"] }
tower-http = "0.7"
windows-sys = "0.61"
# Proc macros
quote = "1"
syn = "3"
# Testing
expect-test = "1.5"
regex = "1.12.2"
h2 = "0.4"
rcgen = { version = "0.14", default-features = false, features = ["crypto", "aws_lc_rs"] }
tokio-rustls = { version = "0.26", default-features = false, features = ["aws_lc_rs", "tls12"] }
[workspace.lints.rust]
future_incompatible = { level = "warn", priority = -1 }
let_underscore = { level = "warn", priority = -1 }
missing_debug_implementations = "warn"
missing_docs = "deny"
nonstandard_style = { level = "warn", priority = -1 }
rust_2018_idioms = { level = "warn", priority = -1 }
unused = { level = "warn", priority = -1 }
[workspace.lints.clippy]
# cargo = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
# TODO(next major): revisit by-value public signatures such as v1 ActiveSession::send_prompt.
needless_pass_by_value = "allow"
# Many end-to-end tests keep the whole protocol exchange in one function.
too_many_lines = "allow"