[package]
edition = "2024"
name = "anthropic-async"
version = "0.5.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 = "multi_turn"
path = "tests/multi_turn.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.httpmock]
version = "0.8"
features = [
"record",
"proxy",
]
[dev-dependencies.insta]
version = "1"
features = [
"json",
"redactions",
]
[dev-dependencies.proptest]
version = "1.6"
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.serial_test]
version = "3"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"macros",
"rt-multi-thread",
]
[dev-dependencies.wiremock]
version = "0.6"
[lints.clippy]
allow_attributes = "warn"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_ref_ptr = "warn"
create_dir = "warn"
dbg_macro = "warn"
default_trait_access = "allow"
exit = "warn"
expect_used = "warn"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
rest_pat_in_fully_bound_structs = "warn"
self_named_module_files = "warn"
significant_drop_tightening = "allow"
struct_excessive_bools = "allow"
suboptimal_flops = "allow"
too_many_lines = "allow"
undocumented_unsafe_blocks = "warn"
unused_result_ok = "warn"
unwrap_used = "warn"
wildcard_dependencies = "warn"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]