claude-cli-sdk 0.2.0

Rust SDK for programmatic interaction with the Claude Code CLI
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.85"
name = "claude-cli-sdk"
version = "0.2.0"
build = false
include = [
    "src/**/*.rs",
    "examples/**/*.rs",
    "Cargo.toml",
    "LICENSE-MIT",
    "LICENSE-APACHE",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK for programmatic interaction with the Claude Code CLI"
homepage = "https://github.com/pomdotdev/claude-cli-sdk"
documentation = "https://docs.rs/claude-cli-sdk"
readme = "README.md"
keywords = [
    "claude",
    "ai",
    "agent",
    "anthropic",
    "sdk",
]
categories = [
    "development-tools",
    "api-bindings",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/pomdotdev/claude-cli-sdk"

[features]
default = []
efficiency = []
integration = []
testing = []

[lib]
name = "claude_cli_sdk"
path = "src/lib.rs"

[[example]]
name = "01_basic_query"
path = "examples/01_basic_query.rs"

[[example]]
name = "02_streaming"
path = "examples/02_streaming.rs"

[[example]]
name = "03_multi_turn"
path = "examples/03_multi_turn.rs"

[[example]]
name = "04_permissions"
path = "examples/04_permissions.rs"

[[example]]
name = "05_hooks"
path = "examples/05_hooks.rs"

[[example]]
name = "06_multimodal"
path = "examples/06_multimodal.rs"

[[example]]
name = "07_thinking_and_fallback"
path = "examples/07_thinking_and_fallback.rs"

[[example]]
name = "08_cancellation"
path = "examples/08_cancellation.rs"

[[example]]
name = "09_message_callback"
path = "examples/09_message_callback.rs"

[[example]]
name = "10_dynamic_control"
path = "examples/10_dynamic_control.rs"

[[example]]
name = "multi_turn"
path = "examples/multi_turn.rs"

[[example]]
name = "simple_query"
path = "examples/simple_query.rs"

[[example]]
name = "streaming"
path = "examples/streaming.rs"

[dependencies.async-stream]
version = "0.3"

[dependencies.async-trait]
version = "0.1"

[dependencies.dashmap]
version = "6"

[dependencies.flume]
version = "0.11"

[dependencies.futures-core]
version = "0.3"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.0"
features = [
    "macros",
    "rt-multi-thread",
    "process",
    "io-util",
    "sync",
    "time",
]

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tokio-util]
version = "0.7"
features = ["rt"]

[dependencies.tracing]
version = "0.1"

[dependencies.typed-builder]
version = "0.20"

[dependencies.uuid]
version = "1.0"
features = ["v4"]

[dependencies.which]
version = "7"

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

[dev-dependencies.tokio-test]
version = "0.4"

[target."cfg(unix)".dependencies.nix]
version = "0.29"
features = ["signal"]

[target."cfg(windows)".dependencies.windows-sys]
version = "0.59"
features = [
    "Win32_System_Console",
    "Win32_System_Threading",
]