claude-sdk 2.1.0

Native Rust SDK for the Claude API with streaming support and tool execution
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.70"
name = "claude-sdk"
version = "2.1.0"
authors = ["Claude Agent SDK Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Native Rust SDK for the Claude API with streaming support and tool execution"
documentation = "https://docs.rs/claude-sdk"
readme = "README.md"
keywords = [
    "claude",
    "anthropic",
    "ai",
    "llm",
    "sdk",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/mcfearsome/claude-agent-sdk-rust"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
cargo-args = [
    "-Zunstable-options",
    "-Zrustdoc-scrape-examples",
]
targets = ["x86_64-unknown-linux-gnu"]

[features]
anthropic = []
bedrock = [
    "aws-config",
    "aws-sdk-bedrockruntime",
]
default = ["anthropic"]
full = [
    "anthropic",
    "bedrock",
    "repl",
]
repl = [
    "rustyline",
    "chrono",
    "tracing-subscriber",
]

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

[[bin]]
name = "claude-repl"
path = "src/bin/claude-repl.rs"
required-features = ["repl"]

[[bin]]
name = "update-changelog"
path = "src/bin/update-changelog.rs"
required-features = ["anthropic"]

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

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

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

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

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

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

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

[dependencies.aws-config]
version = "1"
optional = true

[dependencies.aws-sdk-bedrockruntime]
version = "1"
optional = true

[dependencies.bytes]
version = "1"

[dependencies.chrono]
version = "0.4"
optional = true

[dependencies.eventsource-stream]
version = "0.2"

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1"

[dependencies.reqwest]
version = "0.11"
features = [
    "json",
    "stream",
    "rustls-tls",
    "multipart",
]
default-features = false

[dependencies.rustyline]
version = "14"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "1"

[dependencies.tiktoken-rs]
version = "0.6"

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

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

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
optional = true

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

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

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