# 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 = "llm_adapter"
version = "0.2.8"
authors = ["DarkSky <darksky2048@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library for adapting various language model APIs to a unified interface."
readme = "README.md"
keywords = [
    "llm",
    "language-model",
    "adapter",
    "api-client",
]
license = "AGPL-3.0-only"
repository = "https://github.com/darkskygit/llm_adapter"

[features]
benchmark-cli = [
    "dep:anyhow",
    "dep:clap",
    "dep:rand",
    "dep:toml",
]
default = ["reqwest-client"]
reqwest-client = ["dep:reqwest"]
schema = [
    "dep:jsonschema",
    "dep:schemars",
]
ureq-client = ["dep:ureq"]

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

[[bin]]
name = "llm_benchmark"
path = "src/bin/llm_benchmark.rs"
required-features = ["benchmark-cli"]

[[bin]]
name = "llm_compat"
path = "src/bin/llm_compat.rs"
required-features = ["benchmark-cli"]

[dependencies.anyhow]
version = "1.0"
optional = true

[dependencies.base64]
version = "0.22"

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.jsonschema]
version = "0.47"
optional = true

[dependencies.rand]
version = "0.10"
optional = true

[dependencies.reqwest]
version = "0.13"
features = [
    "blocking",
    "json",
    "rustls",
]
optional = true
default-features = false

[dependencies.schemars]
version = "1.2"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.11"

[dependencies.thiserror]
version = "2"

[dependencies.toml]
version = "1.1"
optional = true

[dependencies.ureq]
version = "3.3"
features = [
    "gzip",
    "rustls",
]
optional = true
default-features = false

[dependencies.url]
version = "2.5"
