# 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 = "liter-llm-proxy"
version = "1.4.1"
authors = ["Na'aman Hirschfeld <naaman@kreuzberg.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OpenAI-compatible LLM proxy server — model routing, virtual keys, rate limiting, cost tracking."
homepage = "https://kreuzberg.dev"
readme = false
keywords = [
    "llm",
    "proxy",
    "openai",
    "gateway",
    "kreuzberg",
]
license = "MIT"
repository = "https://github.com/kreuzberg-dev/liter-llm"
resolver = "2"

[package.metadata.cargo-machete]
ignored = [
    "opentelemetry",
    "tracing-opentelemetry",
]

[features]
default = []
full = [
    "otel",
    "opendal-cache",
]
opendal-cache = ["liter-llm/opendal-cache"]
otel = [
    "liter-llm/otel",
    "dep:opentelemetry",
    "dep:tracing-opentelemetry",
]

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

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

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

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

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

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

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

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

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

[dependencies.axum]
version = "0.8"
features = ["macros"]

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.dashmap]
version = "6"

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

[dependencies.liter-llm]
version = "1.4.1"
features = [
    "native-http",
    "tower",
    "tracing",
]

[dependencies.opendal]
version = "0.57"
features = [
    "services-memory",
    "services-redis",
    "services-fs",
    "services-s3",
]
default-features = false

[dependencies.opentelemetry]
version = "0.32"
optional = true

[dependencies.rmcp]
version = "1.7"
features = [
    "server",
    "macros",
    "transport-io",
    "transport-streamable-http-server",
    "server-side-http",
]

[dependencies.schemars]
version = "1"

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

[dependencies.serde_json]
version = "1"

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

[dependencies.toml]
version = "1.1"

[dependencies.tower]
version = "0.5"
features = [
    "retry",
    "limit",
    "timeout",
    "buffer",
    "load-shed",
    "steer",
    "util",
]

[dependencies.tower-http]
version = "0.6"
features = [
    "follow-redirect",
    "set-header",
    "sensitive-headers",
    "trace",
    "request-id",
    "cors",
    "compression-gzip",
    "catch-panic",
    "limit",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.33"
optional = true

[dependencies.utoipa]
version = "5.5"
features = ["axum_extras"]

[dev-dependencies.ctor]
version = "1.0"

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "stream",
    "multipart",
    "form",
]
default-features = false

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

[lints.clippy]

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(alef)"]
