-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathCargo.toml
More file actions
124 lines (98 loc) · 2.32 KB
/
Cargo.toml
File metadata and controls
124 lines (98 loc) · 2.32 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
118
119
120
121
122
123
124
[package]
name = "copilot-sdk"
version = "0.1.0"
edition = "2024"
rust-version = "1.85"
license = "MIT"
description = "Rust SDK for GitHub Copilot CLI"
repository = "https://github.com/copilot-community-sdk/copilot-sdk-rust"
documentation = "https://docs.rs/copilot-sdk"
readme = "README.md"
keywords = ["copilot", "github", "ai", "sdk"]
categories = ["api-bindings", "asynchronous"]
[dependencies]
# Async runtime
tokio = { version = "1", features = [
"rt-multi-thread",
"net",
"process",
"sync",
"io-util",
"macros",
"time",
] }
# JSON serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Error handling
thiserror = "2"
# DateTime handling
chrono = { version = "0.4", features = ["serde"] }
# Logging
tracing = "0.1"
# Executable finding
which = "8"
schemars = { version = "1.2", optional = true, features = ["derive"] }
[dev-dependencies]
tokio-test = "0.4"
pretty_assertions = "1"
tempfile = "3"
futures = "0.3"
rand = "0.9"
serde_yaml = "0.9"
[features]
default = []
e2e = [] # Enable E2E tests that require real Copilot CLI
snapshots = [] # Enable snapshot-based conformance tests
schemars = ["dep:schemars"] # Derive tool JSON schemas from Rust types
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
all-features = true
[[example]]
name = "basic_chat"
path = "examples/basic_chat.rs"
[[example]]
name = "tool_usage"
path = "examples/tool_usage.rs"
[[example]]
name = "streaming"
path = "examples/streaming.rs"
[[example]]
name = "multi_turn"
path = "examples/multi_turn.rs"
[[example]]
name = "byok"
path = "examples/byok.rs"
[[example]]
name = "system_prompt"
path = "examples/system_prompt.rs"
[[example]]
name = "custom_agents"
path = "examples/custom_agents.rs"
[[example]]
name = "mcp_servers"
path = "examples/mcp_servers.rs"
[[example]]
name = "attachments"
path = "examples/attachments.rs"
[[example]]
name = "permission_callback"
path = "examples/permission_callback.rs"
[[example]]
name = "resume_with_tools"
path = "examples/resume_with_tools.rs"
[[example]]
name = "multi_tools"
path = "examples/multi_tools.rs"
[[example]]
name = "yolo"
path = "examples/yolo.rs"
[[example]]
name = "debug_pipe"
path = "examples/debug_pipe.rs"
[[example]]
name = "escape_room"
path = "examples/escape_room.rs"
[[example]]
name = "rscopilot-cli"
path = "examples/rscopilot_cli.rs"