claude-code-agent 0.8.0

Rust SDK for Claude Code — persistent subprocess, hook callbacks, in-process tools, record/replay
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.88"
name = "claude-code-agent"
version = "0.8.0"
build = false
include = [
    "src/**",
    "examples/**",
    "tests/**",
    "README.md",
    "LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK for Claude Code — persistent subprocess, hook callbacks, in-process tools, record/replay"
readme = "README.md"
keywords = [
    "claude",
    "claude-code",
    "anthropic",
    "agent",
    "sdk",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/nguyenvanduocit/claude-code-agent"

[features]
default = []
macros = ["dep:claude-code-agent-macros"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[example]]
name = "tools"
path = "examples/tools.rs"
required-features = ["macros"]

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

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

[[test]]
name = "fake_cli"
path = "tests/fake_cli.rs"
harness = false

[[test]]
name = "integration_test"
path = "tests/integration_test.rs"

[[test]]
name = "macro_usage"
path = "tests/macro_usage.rs"

[[test]]
name = "replay_test"
path = "tests/replay_test.rs"

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

[dependencies.claude-code-agent-macros]
version = "=0.8.0"
optional = true

[dependencies.dashmap]
version = "6"

[dependencies.regex]
version = "1.13.2"
features = [
    "std",
    "perf",
    "unicode-perl",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

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

[dependencies.tracing]
version = "0.1"

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

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

[dev-dependencies.claude-code-agent-macros]
version = "=0.8.0"

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

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "fmt",
    "env-filter",
]

[target."cfg(unix)".dependencies.nix]
version = "0.32.0"
features = [
    "signal",
    "user",
]

[target."cfg(windows)".dependencies.win32job]
version = "2.1"