Skip to content

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]

fix(build): rebuild the Rust bridge when uv sync sees Rust sources change (#44708)

nate-berri371b527d6055
diff --git a/pyproject.toml b/pyproject.toml
index 3722dbca350..8543649d806 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -338,6 +338,14 @@ exclude = [
]
[tool.uv]
+cache-keys = [
+ { file = "pyproject.toml" },
+ { file = "rust-toolchain.toml" },
+ { file = ".cargo/config.toml" },
+ { file = "litellm-rust/Cargo.lock" },
+ { file = "litellm-rust/Cargo.toml" },
+ { file = "litellm-rust/crates/**/*" },
+]
constraint-dependencies = [
"tornado>=6.5.8",
"aiohttp>=3.14.2,<4.0",