The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
ci(rust): lint every gateway feature and keep one checks runbook
mateo-berrif986fc52f03f
diff --git a/.github/workflows/test-rust.yml b/.github/workflows/test-rust.ymlindex ae80155305a..9b8b132df62 100644--- a/.github/workflows/test-rust.yml+++ b/.github/workflows/test-rust.yml@@ -74,8 +74,8 @@ jobs:- name: Run Clippy with Bedrock authrun: cargo clippy -p litellm-core --all-targets --features bedrock-auth --locked -- -D warnings- - name: Run Clippy with the gateway server- run: cargo clippy -p litellm-ai-gateway --all-targets --features server --locked -- -D warnings+ - name: Run Clippy with all gateway features+ run: cargo clippy -p litellm-ai-gateway --all-targets --all-features --locked -- -D warnings- name: Run Rust testsrun: cargo test --workspace --locked@@ -83,6 +83,7 @@ jobs:- name: Run core tests with Bedrock authrun: cargo test -p litellm-core --features bedrock-auth --locked+ # Not --all-features: python-config links libpython, which this job does not install.- name: Run gateway tests with the server featurerun: cargo test -p litellm-ai-gateway --features server --lockeddiff --git a/litellm-rust/CLAUDE.md b/litellm-rust/CLAUDE.mdindex be0fcdd1474..d9c944529df 100644--- a/litellm-rust/CLAUDE.md+++ b/litellm-rust/CLAUDE.md@@ -174,10 +174,12 @@ for changes under `litellm-rust/`.```bashcd litellm-rustcargo fmt --check+cargo clippy --workspace --all-targets -- -D warnings+cargo clippy -p litellm-core --all-targets --features bedrock-auth -- -D warnings# the ai-gateway binary + server code is behind the `server` feature-cargo clippy -p litellm-ai-gateway --all-targets --features server -- -D warnings-cargo clippy -p litellm-core -p litellm-python-interop -p litellm-python-bridge --all-targets -- -D warnings+cargo clippy -p litellm-ai-gateway --all-targets --all-features -- -D warningscargo test --workspace+cargo test -p litellm-core --features bedrock-auth# the `auth`, `routes`, `state` and `realtime` tests only exist under `server`cargo test -p litellm-ai-gateway --features server```diff --git a/litellm-rust/README.md b/litellm-rust/README.mdindex a0d79c6f0a5..e43dc7ea6ad 100644--- a/litellm-rust/README.md+++ b/litellm-rust/README.md@@ -49,11 +49,6 @@ function per top-level route, mirroring the core entrypoints.## Checks-Run these before pushing Rust changes. GitHub Actions runs the same checks for-changes under `litellm-rust/`.--```bash-cargo fmt --check-cargo clippy --workspace --all-targets -- -D warnings-cargo test --workspace-```+Run the commands under "Checks" in [CLAUDE.md](CLAUDE.md) before pushing Rust+changes. That list is the single source of truth and matches what GitHub Actions+runs for changes under `litellm-rust/`.diff --git a/litellm-rust/crates/CODING_STANDARDS/PROVIDER_CODING_STANDARDS.md b/litellm-rust/crates/CODING_STANDARDS/PROVIDER_CODING_STANDARDS.mdindex 4a689cb9579..c0a29ab14bc 100644--- a/litellm-rust/crates/CODING_STANDARDS/PROVIDER_CODING_STANDARDS.md+++ b/litellm-rust/crates/CODING_STANDARDS/PROVIDER_CODING_STANDARDS.md@@ -49,11 +49,5 @@ Rules for adding or changing an LLM provider/route in `litellm-rust`. `messages`## Checks before push-25. Run, and keep green:- ```bash- cd litellm-rust- cargo fmt --check- cargo clippy -p litellm-ai-gateway --all-targets --features server -- -D warnings- cargo clippy -p litellm-core -p litellm-python-interop -p litellm-python-bridge --all-targets -- -D warnings- cargo test --workspace- ```+25. Run, and keep green, the commands under "Checks" in `litellm-rust/CLAUDE.md`.+ That list is the single source of truth and matches what GitHub Actions runs.