-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathCargo.toml
More file actions
94 lines (80 loc) · 3.02 KB
/
Copy pathCargo.toml
File metadata and controls
94 lines (80 loc) · 3.02 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
[package]
name = "agent-client-protocol"
version = "2.2.0"
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
description = "Core protocol types and traits for the Agent Client Protocol"
keywords = ["acp", "agent", "protocol", "ai"]
categories = ["development-tools"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[example]]
name = "simple_agent_v2"
required-features = ["unstable_protocol_v2"]
test = true
[[example]]
name = "v2_one_shot_client"
required-features = ["unstable_protocol_v2"]
test = true
[[example]]
name = "v2_session_coordination"
required-features = ["unstable_protocol_v2"]
test = true
[features]
default = ["schemars"]
# JSON Schema generation for protocol types and typed MCP tool helpers.
schemars = ["dep:schemars", "agent-client-protocol-schema/schemars"]
# Forward unstable features from agent-client-protocol-schema.
# Enable these to get support for the corresponding unstable ACP surfaces.
unstable = [
"unstable_end_turn_token_usage",
"unstable_llm_providers",
"unstable_mcp_over_acp",
"unstable_plan_operations",
"unstable_session_compaction",
"unstable_session_fork",
"unstable_session_notices",
]
unstable_end_turn_token_usage = ["agent-client-protocol-schema/unstable_end_turn_token_usage"]
unstable_llm_providers = ["agent-client-protocol-schema/unstable_llm_providers"]
unstable_mcp_over_acp = ["agent-client-protocol-schema/unstable_mcp_over_acp"]
unstable_plan_operations = ["agent-client-protocol-schema/unstable_plan_operations"]
unstable_session_compaction = ["agent-client-protocol-schema/unstable_session_compaction"]
unstable_session_fork = ["agent-client-protocol-schema/unstable_session_fork"]
unstable_session_notices = ["agent-client-protocol-schema/unstable_session_notices"]
unstable_protocol_v2 = ["agent-client-protocol-schema/unstable_protocol_v2"]
# Use Web Crypto through wasm-bindgen for UUID randomness on JavaScript-hosted,
# OS-less WebAssembly targets.
wasm_js = ["uuid/js"]
[dependencies]
agent-client-protocol-schema.workspace = true
agent-client-protocol-derive.workspace = true
futures.workspace = true
futures-concurrency.workspace = true
rustc-hash.workspace = true
schemars = { workspace = true, optional = true }
serde.workspace = true
serde_json.workspace = true
tracing.workspace = true
uuid.workspace = true
[target.'cfg(not(target_family = "wasm"))'.dependencies]
async-io.workspace = true
async-process.workspace = true
blocking.workspace = true
shell-words.workspace = true
[target.'cfg(all(unix, not(target_family = "wasm")))'.dependencies]
rustix.workspace = true
[target.'cfg(windows)'.dependencies]
windows-sys = { workspace = true, features = ["Win32_System_Threading"] }
[dev-dependencies]
agent-client-protocol-test.workspace = true
clap.workspace = true
expect-test.workspace = true
tokio = { workspace = true, features = ["io-std", "io-util", "macros", "rt", "rt-multi-thread", "sync", "time"] }
tokio-util.workspace = true
[lints]
workspace = true