-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (57 loc) · 1.65 KB
/
Copy pathCargo.toml
File metadata and controls
72 lines (57 loc) · 1.65 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
[package]
name = "claude-agent-sdk"
version = "0.1.1"
edition = "2021"
authors = ["Anthropic <support@anthropic.com>"]
description = "Idiomatic Rust SDK for building AI agents powered by Claude Code with full async support, type safety, and security hardening"
license = "MIT"
repository = "https://github.com/dhuseby/claude-agent-sdk-rust"
keywords = ["claude", "ai", "sdk", "anthropic", "agent"]
categories = ["api-bindings", "asynchronous"]
rust-version = "1.75.0"
[dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
tokio-util = { version = "0.7", features = ["codec"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# HTTP client (for future MCP HTTP support)
reqwest = { version = "0.12", features = ["json", "stream"], optional = true }
# Error handling
thiserror = "1.0"
# Async streams
futures = "0.3"
async-stream = "0.3"
async-trait = "0.1"
# Process utilities
which = "6.0"
# Optional: Tracing
tracing = { version = "0.1", optional = true }
tracing-subscriber = { version = "0.3", optional = true }
[dev-dependencies]
anyhow = "1.0"
tokio-test = "0.4"
tempfile = "3.0"
[features]
default = []
http = ["reqwest"]
tracing-support = ["tracing", "tracing-subscriber"]
[[example]]
name = "simple_query"
path = "examples/simple_query.rs"
[[example]]
name = "interactive_client"
path = "examples/interactive_client.rs"
[[example]]
name = "bidirectional_demo"
path = "examples/bidirectional_demo.rs"
[[example]]
name = "hooks_demo"
path = "examples/hooks_demo.rs"
[[example]]
name = "permissions_demo"
path = "examples/permissions_demo.rs"
[[example]]
name = "mcp_demo"
path = "examples/mcp_demo.rs"