claude-code-rs 0.1.1

Rust rewrite of the official Anthropic Claude Agent SDK (Python). Wraps Claude Code CLI via subprocess with bidirectional JSON streaming.
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 = "2021"
rust-version = "1.75"
name = "claude-code-rs"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust rewrite of the official Anthropic Claude Agent SDK (Python). Wraps Claude Code CLI via subprocess with bidirectional JSON streaming."
homepage = "https://github.com/decisiongraph/claude-code-rs"
readme = "README.md"
keywords = [
    "claude",
    "anthropic",
    "agent",
    "sdk",
    "ai",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/decisiongraph/claude-code-rs"

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

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

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

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

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

[dependencies.rand]
version = "0.9"

[dependencies.semver]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

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

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

[dependencies.tracing]
version = "0.1"

[dependencies.which]
version = "7"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "test-util",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"