Skip to content

Switchyard lets LLM applications route traffic across models and providers while preserving native OpenAI and Anthropic API compatibility - enabling flexible model selection, benchmarking, and cost/performance optimization.

Rust

ci: lock Rust checks and test prefill feature (#676)

Alex Fournieree00da7f6cda
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 218fb1a23..4186d3416 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -117,9 +117,13 @@ jobs:
- name: cargo fmt
run: cargo fmt --all --check
- name: cargo clippy
- run: cargo clippy --workspace --all-targets -- -D warnings
+ run: cargo clippy --workspace --all-targets --locked -- -D warnings
+ - name: cargo clippy (prefill-router)
+ run: cargo clippy -p switchyard-server --all-targets --features prefill-router --locked -- -D warnings
- name: cargo test
- run: cargo test --workspace
+ run: cargo test --workspace --locked
+ - name: cargo test (prefill-router)
+ run: cargo test -p switchyard-runner --features prefill-router --locked
typecheck:
name: Typecheck (mypy)