# 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-cli"
version = "1.9.0-rc.1"
authors = ["Na'aman Hirschfeld <naaman@xberg.io>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI for liter-llm — start an OpenAI-compatible proxy server or MCP tool server."
homepage = "https://xberg.io"
readme = false
keywords = [
    "llm",
    "proxy",
    "cli",
    "openai",
    "xberg",
]
license = "MIT"
repository = "https://github.com/xberg-io/liter-llm"
resolver = "2"

[features]
default = []
etcd-watch = ["liter-llm-proxy/etcd-watch"]
jemalloc = ["dep:tikv-jemallocator"]
mimalloc = ["dep:mimalloc"]
otel = ["liter-llm-proxy/otel"]

[[bin]]
name = "liter-llm"
path = "src/main.rs"

[dependencies.arc-swap]
version = "1"

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

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[dependencies.liter-llm]
version = "1.9.0-rc.1"

[dependencies.liter-llm-proxy]
version = "1.9.0-rc.1"

[dependencies.mimalloc]
version = "0.1"
optional = true
default-features = false

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

[dependencies.secrecy]
version = "0.10"
features = ["serde"]

[dependencies.tikv-jemallocator]
version = "0.6"
optional = true

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

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]

[dependencies.url]
version = "2.5"

[lints.clippy]
missing-errors-doc = "allow"
missing-panics-doc = "allow"
module-name-repetitions = "allow"
needless-pass-by-value = "allow"
unused-unit = "allow"

[lints.clippy.correctness]
level = "deny"
priority = -1

[lints.clippy.perf]
level = "deny"
priority = -1

[lints.clippy.style]
level = "warn"
priority = -1

[lints.clippy.suspicious]
level = "deny"
priority = -1

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