litellm/litellm-rust
2026-06-22 18:25:05 -07:00
..
crates rust(providers): end-to-end run_ocr orchestrator with shared client + timeout 2026-06-22 18:25:05 -07:00
.gitignore Add litellm rust workspace with mistral ocr bridge 2026-06-22 17:07:00 -07:00
Cargo.toml rust: add reqwest (rustls-tls) workspace dependency 2026-06-22 18:25:05 -07:00
CLAUDE.md Add litellm rust workspace with mistral ocr bridge 2026-06-22 17:07:00 -07:00
README.md Add litellm rust workspace with mistral ocr bridge 2026-06-22 17:07:00 -07:00

LiteLLM Rust

This workspace contains the staged Rust implementation for LiteLLM.

Rust starts as a pure transform core used by the existing Python host. Python continues to own auth, configuration, network I/O, retries, routing, logging, callbacks, spend tracking, and customer plugins until each Rust path has parity coverage and production evidence.

Layout

crates/
  core/           Route contracts, shared pure types, errors, and templates.
    src/ocr/
  providers/      Provider-specific pure transforms.
    src/mistral/ocr/transformation.rs
  python-bridge/  PyO3 bridge for Python LiteLLM.

The folder shape should follow the Python provider tree: providers/src/<provider>/<route>/transformation.rs. The bridge should expose one function per top-level route, starting with ocr(payload).

Checks

Run these before pushing Rust changes. GitHub Actions runs the same checks for changes under litellm-rust/.

cargo fmt --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace