# 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 = "2024"
name = "lellm-provider"
version = "0.4.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Provider adapters for LeLLM — OpenAI, Anthropic, and more"
documentation = "https://docs.rs/lellm-provider"
readme = false
license = "MIT"
repository = "https://github.com/lellm-ai/lellm"
resolver = "2"

[features]
anthropic = []
default = [
    "openai",
    "anthropic",
    "openai-compat",
]
mock = []
openai = []
openai-compat = []

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

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

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

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

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

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

[[test]]
name = "integration"
path = "tests/integration.rs"

[dependencies.anyhow]
version = "1"

[dependencies.async-trait]
version = "0.1"

[dependencies.bytes]
version = "1"

[dependencies.futures-core]
version = "0.3"

[dependencies.futures-util]
version = "0.3"

[dependencies.http]
version = "1"

[dependencies.lellm-core]
version = "0.4"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "stream",
]

[dependencies.secrecy]
version = "0.8"

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

[dependencies.serde_json]
version = "1"

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

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"
