[package]
edition = "2024"
name = "anthropic-async"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Anthropic API client for Rust with prompt caching support"
readme = "README.md"
keywords = [
"anthropic",
"claude",
"llm",
"client",
]
categories = ["api-bindings"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/allisoneer/agentic_auxilary"
resolver = "2"
[package.metadata.dist]
dist = false
[package.metadata.repo]
role = "lib"
family = "services"
readme_tier = "featured"
[package.metadata.repo.integrations]
mcp = false
logging = false
napi = false
[features]
default = []
schemars = ["dep:schemars"]
streaming = []
[lib]
name = "anthropic_async"
path = "src/lib.rs"
[[test]]
name = "auth_both"
path = "tests/auth_both.rs"
[[test]]
name = "beta_header"
path = "tests/beta_header.rs"
[[test]]
name = "count_tokens"
path = "tests/count_tokens.rs"
[[test]]
name = "env_vars"
path = "tests/env_vars.rs"
[[test]]
name = "messages_create"
path = "tests/messages_create.rs"
[[test]]
name = "models"
path = "tests/models.rs"
[[test]]
name = "models_retry_get"
path = "tests/models_retry_get.rs"
[[test]]
name = "multimodal"
path = "tests/multimodal.rs"
[[test]]
name = "retry"
path = "tests/retry.rs"
[[test]]
name = "streaming"
path = "tests/streaming.rs"
[[test]]
name = "streaming_compile"
path = "tests/streaming_compile.rs"
[[test]]
name = "structured_outputs"
path = "tests/structured_outputs.rs"
[[test]]
name = "tools"
path = "tests/tools.rs"
[[test]]
name = "validation"
path = "tests/validation.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.backon]
version = "1"
features = ["tokio-sleep"]
[dependencies.bytes]
version = "1.0"
[dependencies.chrono]
version = "0.4"
features = [
"serde",
"serde",
]
[dependencies.derive_builder]
version = "0.20"
[dependencies.futures]
version = "0.3"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"gzip",
"brotli",
"deflate",
"stream",
"rustls-tls",
]
default-features = false
[dependencies.schemars]
version = "1"
features = [
"derive",
"preserve_order",
]
optional = true
[dependencies.secrecy]
version = "0.10"
[dependencies.serde]
version = "1.0"
features = [
"derive",
"derive",
]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1"
features = [
"full",
"macros",
"rt-multi-thread",
]
[dependencies.tracing]
version = "0.1"
[dev-dependencies.proptest]
version = "1.6"
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.serial_test]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"macros",
"rt-multi-thread",
]
[dev-dependencies.wiremock]
version = "0.6"
[lints.clippy]
all = "deny"
nursery = "warn"
pedantic = "warn"
[lints.rust]
warnings = "deny"