[package]
edition = "2021"
name = "anthropic-rust-sdk"
version = "0.1.0"
authors = ["高奕 <gaoyia@live.com>"]
build = false
exclude = [
"anthropic-sdk-typescript/",
".cursor/",
".plan/",
".github/",
".gitmodules",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Anthropic Claude API client for Rust, synced from anthropic-sdk-typescript"
homepage = "https://github.com/gaoyia/anthropic-rust-sdk"
documentation = "https://docs.rs/anthropic-rust-sdk"
readme = "README.md"
keywords = [
"anthropic",
"claude",
"ai",
"llm",
"api",
]
categories = [
"api-bindings",
"web-programming::http-client",
]
license = "MIT"
repository = "https://github.com/gaoyia/anthropic-rust-sdk"
[lib]
name = "anthropic_rust_sdk"
path = "src/lib.rs"
[[example]]
name = "messages_create"
path = "examples/messages_create.rs"
[[example]]
name = "streaming"
path = "examples/streaming.rs"
[[test]]
name = "client_test"
path = "tests/client_test.rs"
[[test]]
name = "sse_test"
path = "tests/sse_test.rs"
[[test]]
name = "webhook_test"
path = "tests/webhook_test.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.bytes]
version = "1"
[dependencies.futures]
version = "0.3"
features = ["alloc"]
[dependencies.hex]
version = "0.4"
[dependencies.hmac]
version = "0.12"
[dependencies.http]
version = "1"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
"stream",
]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "1"
[dependencies.tokio]
version = "1"
features = [
"sync",
"time",
"macros",
"rt-multi-thread",
]
[dependencies.uuid]
version = "1"
features = ["v4"]
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.wiremock]
version = "0.6"