# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "anyllm_client"
version = "0.10.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async HTTP client for Anthropic-to-OpenAI translation with retry, SSRF protection, and SSE streaming"
readme = "README.md"
keywords = [
    "anthropic",
    "openai",
    "translation",
    "llm",
    "client",
]
categories = [
    "api-bindings",
    "web-programming::http-client",
]
license = "MIT"
repository = "https://github.com/whit3rabbit/anyllm-proxy"

[features]
default = [
    "ssrf-protection",
    "native-tls",
]
native-tls = ["reqwest/native-tls"]
rustls = ["reqwest/rustls-tls-native-roots"]
ssrf-protection = []

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

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

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

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

[dependencies.anyllm_translate]
version = "0.10.0"

[dependencies.bytes]
version = "1"

[dependencies.futures]
version = "0.3"

[dependencies.httpdate]
version = "1"

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

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

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "sync",
    "time",
]

[dependencies.tracing]
version = "0.1"

[dependencies.zeroize]
version = "1"

[dev-dependencies.pretty_assertions]
version = "1"

[dev-dependencies.tokio]
version = "1"
features = ["full"]
