github-copilot-sdk 1.0.0-beta.4

Rust SDK for programmatic control of the GitHub Copilot CLI via JSON-RPC. Technical preview, pre-1.0.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.94.0"
name = "github-copilot-sdk"
version = "1.0.0-beta.4"
build = "build.rs"
exclude = [
    "RELEASING.md",
    "rust-toolchain.toml",
    ".rustfmt.toml",
    ".rustfmt.nightly.toml",
    "clippy.toml",
    ".gitignore",
]
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]
default = []
derive = ["dep:schemars"]
embedded-cli = [
    "dep:sha2",
    "dep:zstd",
]
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 = "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"

[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.sha2]
version = "0.10"
optional = true

[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

[dependencies.zstd]
version = "0.13"
optional = true

[dev-dependencies.schemars]
version = "1"

[dev-dependencies.serial_test]
version = "3"

[dev-dependencies.sha2]
version = "0.10"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = ["rt-multi-thread"]

[dev-dependencies.zstd]
version = "0.13"

[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

[build-dependencies.zstd]
version = "0.13"