[package]
edition = "2021"
rust-version = "1.70"
name = "api_claude"
version = "0.6.1"
authors = ["Kostiantyn Mysnyk <wandalen@obox.systems>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Claude API for accessing Anthropic's large language models (LLMs).
"""
homepage = "https://github.com/Wandalen/api_llm/tree/master/api/claude"
documentation = "https://docs.rs/api_claude"
readme = "readme.md"
keywords = [
"fundamental",
"general-purpose",
]
categories = [
"algorithms",
"development-tools",
]
license = "MIT"
repository = "https://github.com/Wandalen/api_llm/tree/master/api/claude"
[package.metadata.docs.rs]
features = ["full"]
all-features = false
[features]
authentication = []
batch-processing = []
buffered-streaming = ["streaming"]
circuit-breaker = []
compression = ["flate2"]
content-generation = []
count-tokens = []
curl-diagnostics = []
default = ["full"]
dynamic-config = [
"notify",
"parking_lot",
]
enabled = [
"dep:mod_interface",
"dep:error_tools",
"dep:workspace_tools",
"dep:serde",
"dep:serde_json",
"dep:serde_with",
"dep:futures-core",
"dep:futures-util",
"dep:tokio",
"dep:reqwest",
]
enhanced-function-calling = ["tools"]
enterprise-quota = [
"parking_lot",
"chrono",
]
error-handling = ["chrono"]
failover = []
full = [
"enabled",
"integration",
"streaming",
"authentication",
"content-generation",
"model-management",
"error-handling",
"tools",
"vision",
"curl-diagnostics",
"general-diagnostics",
"sync-api",
"retry-logic",
"circuit-breaker",
"rate-limiting",
"failover",
"health-checks",
"batch-processing",
"count-tokens",
"request-caching",
"streaming-control",
"compression",
"enterprise-quota",
"dynamic-config",
"model-comparison",
"request-templates",
"buffered-streaming",
"input-validation",
"enhanced-function-calling",
]
general-diagnostics = []
health-checks = []
input-validation = []
integration = []
model-comparison = []
model-management = []
rate-limiting = ["tokio/time"]
request-caching = []
request-templates = []
retry-logic = []
streaming = [
"tokio-stream",
"futures",
]
streaming-control = ["streaming"]
sync-api = []
tools = []
vision = []
[lib]
name = "api_claude"
path = "src/lib.rs"
[[example]]
name = "claude_api_basic"
path = "examples/claude_api_basic.rs"
[[example]]
name = "claude_api_interactive"
path = "examples/claude_api_interactive.rs"
[[example]]
name = "claude_chat_cached_interactive"
path = "examples/claude_chat_cached_interactive.rs"
[[example]]
name = "claude_chat_streaming"
path = "examples/claude_chat_streaming.rs"
[[example]]
name = "claude_code_review"
path = "examples/claude_code_review.rs"
[[example]]
name = "claude_content_generation"
path = "examples/claude_content_generation.rs"
[[example]]
name = "claude_function_calling"
path = "examples/claude_function_calling.rs"
[[example]]
name = "claude_multi_turn_conversation"
path = "examples/claude_multi_turn_conversation.rs"
[[example]]
name = "claude_vision_analysis"
path = "examples/claude_vision_analysis.rs"
[[test]]
name = "tests"
path = "tests/tests.rs"
[dependencies.chrono]
version = "^0.4"
features = ["serde"]
optional = true
[dependencies.error_tools]
version = "^0.40"
features = ["error_typed"]
optional = true
[dependencies.flate2]
version = "^1.1"
optional = true
[dependencies.futures]
version = "^0.3"
optional = true
[dependencies.futures-core]
version = "^0.3"
optional = true
[dependencies.futures-util]
version = "^0.3"
optional = true
[dependencies.mod_interface]
version = "^0.64"
optional = true
[dependencies.notify]
version = "^8.2"
optional = true
[dependencies.parking_lot]
version = "^0.12"
optional = true
[dependencies.reqwest]
version = "^0.13"
features = [
"json",
"rustls",
]
optional = true
default-features = false
[dependencies.serde]
version = "^1.0"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "^1.0"
optional = true
[dependencies.serde_with]
version = "^3.21"
optional = true
[dependencies.tokio]
version = "^1.52"
features = ["macros"]
optional = true
[dependencies.tokio-stream]
version = "^0.1"
optional = true
[dependencies.workspace_tools]
version = "^0.14"
features = ["secrets"]
optional = true
[dev-dependencies.tempfile]
version = "^3.27"
[lints.clippy]
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
cast_precision_loss = "allow"
doc_include_without_cfg = "warn"
implicit_return = "allow"
inline_always = "allow"
items_after_statements = "allow"
missing_docs_in_private_items = "allow"
missing_inline_in_public_items = "warn"
mod_module_files = "allow"
module_name_repetitions = "allow"
pub_use = "allow"
question_mark_used = "allow"
single_call_fn = "allow"
std_instead_of_alloc = "allow"
std_instead_of_core = "warn"
undocumented_unsafe_blocks = "deny"
wildcard_imports = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unsafe-code = "deny"
[lints.rust.future_incompatible]
level = "warn"
priority = -1
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1