litellm-rust 0.1.1

Minimal Rust SDK port of LiteLLM – unified interface for chat, embeddings, images, and video across OpenAI-compatible, Anthropic, Gemini, and xAI providers
Documentation
# 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"
rust-version = "1.88"
name = "litellm-rust"
version = "0.1.1"
authors = ["Aviv Sinai"]
build = false
exclude = [
    "/tests",
    "/.github",
    "/.gitleaks.toml",
    "/CLAUDE.md",
    "/AGENTS.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Minimal Rust SDK port of LiteLLM – unified interface for chat, embeddings, images, and video across OpenAI-compatible, Anthropic, Gemini, and xAI providers"
homepage = "https://github.com/avivsinai/litellm-rust"
readme = "README.md"
keywords = [
    "llm",
    "ai",
    "openai",
    "anthropic",
    "gemini",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/avivsinai/litellm-rust"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

[dependencies.anyhow]
version = "1.0"

[dependencies.async-stream]
version = "0.3"

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

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1.5"

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

[dependencies.mime_guess]
version = "2.0"

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.36"
features = [
    "rt-multi-thread",
    "macros",
    "time",
]

[dependencies.tokio-util]
version = "0.7"
features = ["io"]

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

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
cast_possible_truncation = "allow"
items_after_test_module = "allow"
needless_pass_by_value = "allow"
too_many_arguments = "allow"

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

[lints.rust]
unsafe_code = "forbid"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1