claude-agent 0.2.21

Rust SDK for building AI agents with Anthropic's Claude - Direct API, no CLI dependency
Documentation
[dependencies.async-trait]
version = "0.1"

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

[dependencies.aws-credential-types]
optional = true
version = "^1.2"

[dependencies.aws-sigv4]
optional = true
version = "^1.3"

[dependencies.aws-smithy-runtime-api]
optional = true
version = "^1.9"

[dependencies.azure_core]
optional = true
version = "0.30"

[dependencies.azure_identity]
optional = true
version = "0.30"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "^1.7"

[dependencies.chrono]
features = ["serde"]
version = "0.4"

[dependencies.dashmap]
version = "^6.1"

[dependencies.directories]
version = "6"

[dependencies.dirs]
optional = true
version = "6"

[dependencies.futures]
version = "0.3"

[dependencies.gcp_auth]
optional = true
version = "0.12"

[dependencies.glob]
version = "0.3"

[dependencies.mime_guess]
version = "2"

[dependencies.opentelemetry]
optional = true
version = "0.31"

[dependencies.opentelemetry-otlp]
features = ["http-proto", "metrics"]
optional = true
version = "0.31"

[dependencies.opentelemetry-semantic-conventions]
optional = true
version = "0.31"

[dependencies.opentelemetry_sdk]
features = ["rt-tokio", "metrics"]
optional = true
version = "0.31"

[dependencies.pdf-extract]
optional = true
version = "0.10"

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.rand]
version = "0.9"

[dependencies.redis]
features = ["tokio-comp", "connection-manager"]
optional = true
version = "1"

[dependencies.regex]
version = "1"

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

[dependencies.rmcp]
features = ["client", "transport-child-process", "client-side-sse", "reqwest"]
optional = true
version = "0.12"

[dependencies.rust_decimal]
optional = true
version = "1"

[dependencies.rustix]
features = ["fs", "process"]
version = "1.1"

[dependencies.schemars]
version = "1.2"

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

[dependencies.serde_json]
version = "^1.0"

[dependencies.serde_yaml_bw]
version = "2.5"

[dependencies.sqlx]
default-features = false
features = ["runtime-tokio", "postgres", "json", "chrono", "uuid", "rust_decimal"]
optional = true
version = "0.8"

[dependencies.thiserror]
version = "2"

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

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

[dependencies.tracing]
version = "^0.1"

[dependencies.tracing-opentelemetry]
optional = true
version = "0.32"

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

[dependencies.tree-sitter]
version = "0.26"

[dependencies.tree-sitter-bash]
version = "0.25"

[dependencies.url]
version = "2"

[dependencies.urlencoding]
version = "2"

[dependencies.uuid]
features = ["v4", "serde"]
version = "^1.10"

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

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

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

[dev-dependencies.wiremock]
version = "0.6"

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

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

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

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

[features]
aws = ["aws-config", "aws-credential-types", "aws-sigv4", "aws-smithy-runtime-api"]
azure = ["azure_identity", "azure_core"]
cli-integration = []
cloud-all = ["aws", "gcp", "azure"]
default = ["cli-integration"]
full = ["mcp", "cloud-all", "persistence-all", "otel"]
gcp = ["gcp_auth"]
jsonl = ["dirs"]
mcp = ["rmcp"]
multimedia = ["pdf-extract"]
otel = ["opentelemetry", "opentelemetry_sdk", "opentelemetry-otlp", "opentelemetry-semantic-conventions", "tracing-opentelemetry", "tracing-subscriber"]
persistence-all = ["jsonl", "postgres", "redis-backend"]
postgres = ["sqlx", "rust_decimal"]
redis-backend = ["redis"]

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

[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["api-bindings", "asynchronous"]
description = "Rust SDK for building AI agents with Anthropic's Claude - Direct API, no CLI dependency"
documentation = "https://docs.rs/claude-agent"
edition = "2024"
keywords = ["ai", "claude", "anthropic", "agent", "llm"]
license = "MIT"
name = "claude-agent"
readme = "README.md"
repository = "https://github.com/junyeong-ai/claude-agent-rs"
rust-version = "1.92"
version = "0.2.21"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[target.'cfg(target_os = "linux")'.dependencies.landlock]
version = "0.4"

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

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

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

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

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

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

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

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

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

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

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

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