[package]
edition = "2021"
name = "claude-code-sdk-rust"
version = "0.1.1"
authors = ["Pandelis Zembashis <p@ndel.is>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async Rust SDK for the Claude Code CLI: streaming agent turns, tool use, and sessions."
homepage = "https://github.com/PandelisZ/claude-agent-sdk-rust"
documentation = "https://docs.rs/claude-code-sdk-rust"
readme = "README.md"
keywords = [
"claude",
"anthropic",
"agent",
"sdk",
"ai",
]
categories = [
"api-bindings",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/PandelisZ/claude-agent-sdk-rust"
[features]
otel = ["dep:opentelemetry"]
[lib]
name = "claude_agent_sdk"
path = "src/lib.rs"
[[test]]
name = "client_control"
path = "tests/client_control.rs"
[[test]]
name = "control_protocol"
path = "tests/control_protocol.rs"
[[test]]
name = "e2e_cli"
path = "tests/e2e_cli.rs"
[[test]]
name = "errors"
path = "tests/errors.rs"
[[test]]
name = "local_sessions"
path = "tests/local_sessions.rs"
[[test]]
name = "options_validation"
path = "tests/options_validation.rs"
[[test]]
name = "query_transport"
path = "tests/query_transport.rs"
[[test]]
name = "root_exports"
path = "tests/root_exports.rs"
[[test]]
name = "sdk_mcp_helpers"
path = "tests/sdk_mcp_helpers.rs"
[[test]]
name = "session_import"
path = "tests/session_import.rs"
[[test]]
name = "session_store_sessions"
path = "tests/session_store_sessions.rs"
[[test]]
name = "session_store_validation"
path = "tests/session_store_validation.rs"
[[test]]
name = "type_contracts"
path = "tests/type_contracts.rs"
[[test]]
name = "wire_parity"
path = "tests/wire_parity.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.bytes]
version = "1"
[dependencies.chrono]
version = "0.4"
features = [
"serde",
"clock",
"std",
]
[dependencies.dirs]
version = "5"
[dependencies.futures]
version = "0.3"
[dependencies.opentelemetry]
version = "0.32"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "1.0"
[dependencies.tokio]
version = "1"
features = [
"process",
"io-util",
"sync",
"rt-multi-thread",
"time",
"fs",
"macros",
]
[dependencies.tokio-util]
version = "0.7"
features = [
"codec",
"io",
]
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1"
features = ["v4"]
[dependencies.which]
version = "6"
[dev-dependencies.tokio-test]
version = "0.4"