[package]
edition = "2024"
rust-version = "1.94.0"
name = "github-copilot-sdk"
version = "1.0.0-beta.7"
build = "build.rs"
include = [
"src/**/*",
"examples/**/*",
"tests/**/*",
"build.rs",
"Cargo.toml",
"README.md",
"LICENSE",
"bundled_cli_version.txt",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK for programmatic control of the GitHub Copilot CLI via JSON-RPC. Technical preview, pre-1.0."
homepage = "https://github.com/github/copilot-sdk"
documentation = "https://docs.rs/github-copilot-sdk"
readme = "README.md"
keywords = [
"copilot",
"github",
"ai",
"json-rpc",
"sdk",
]
categories = [
"api-bindings",
"development-tools",
]
license = "MIT"
repository = "https://github.com/github/copilot-sdk"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
bundled-cli = [
"dep:dirs",
"dep:tar",
"dep:flate2",
"dep:zip",
]
default = ["bundled-cli"]
derive = ["dep:schemars"]
test-support = []
[lib]
name = "github_copilot_sdk"
path = "src/lib.rs"
[[example]]
name = "chat"
path = "examples/chat.rs"
[[example]]
name = "hooks"
path = "examples/hooks.rs"
[[example]]
name = "lifecycle_observer"
path = "examples/lifecycle_observer.rs"
[[example]]
name = "manual_tool_resume"
path = "examples/manual_tool_resume.rs"
[[example]]
name = "session_fs"
path = "examples/session_fs.rs"
[[example]]
name = "tool_server"
path = "examples/tool_server.rs"
[[test]]
name = "api_types_test"
path = "tests/api_types_test.rs"
[[test]]
name = "e2e"
path = "tests/e2e.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[test]]
name = "jsonrpc_test"
path = "tests/jsonrpc_test.rs"
[[test]]
name = "protocol_version_test"
path = "tests/protocol_version_test.rs"
[[test]]
name = "session_test"
path = "tests/session_test.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.dirs]
version = "5"
optional = true
[dependencies.getrandom]
version = "0.2"
[dependencies.parking_lot]
version = "0.12"
[dependencies.regex]
version = "1"
[dependencies.schemars]
version = "1"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"io-util",
"sync",
"rt",
"process",
"net",
"time",
"macros",
]
[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]
[dependencies.tokio-util]
version = "0.7"
default-features = false
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1"
features = ["v4"]
default-features = false
[dev-dependencies.rusqlite]
version = "0.35"
features = ["bundled"]
[dev-dependencies.schemars]
version = "1"
[dev-dependencies.serial_test]
version = "3"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = ["rt-multi-thread"]
[build-dependencies.flate2]
version = "1"
[build-dependencies.sha2]
version = "0.10"
[build-dependencies.tar]
version = "0.4"
[build-dependencies.ureq]
version = "2"
features = ["tls"]
default-features = false
[build-dependencies.zip]
version = "2"
features = ["deflate"]
default-features = false
[target."cfg(not(windows))".dependencies.flate2]
version = "1"
optional = true
[target."cfg(not(windows))".dependencies.tar]
version = "0.4"
optional = true
[target."cfg(windows)".dependencies.zip]
version = "2"
features = ["deflate"]
optional = true
default-features = false