From 1320fcf581bb917da72efb633148cd971a49988c Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Tue, 16 Jun 2026 20:47:27 -0700 Subject: [PATCH] Add rust_lint CI job (cargo fmt + clippy) --- .circleci/config.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index dbeb412506f..6caccc57af6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1019,6 +1019,27 @@ jobs: paths: - ocr_coverage.xml - ocr_coverage + rust_lint: + docker: + - image: cimg/rust:1.81.0@sha256:481ed74dedc5adf6f818141e902a8c20084e127c5f3e9f5dc06bee5646bd4624 + working_directory: ~/project + steps: + - checkout + - run: + name: Rust format check + command: | + cd litellm-rust + cargo fmt --check + - run: + name: Clippy (pure crate + standalone server) + command: | + cd litellm-rust + cargo clippy --all-targets -- -D warnings + - run: + name: Clippy (PyO3 extension) + command: | + cd litellm-rust + PYO3_PYTHON=$(which python3) cargo clippy --lib --features python -- -D warnings search_testing: docker: - *python312_image @@ -2961,6 +2982,8 @@ workflows: filters: *main_branches - ocr_testing: filters: *main_branches + - rust_lint: + filters: *main_branches - search_testing: filters: *main_branches - litellm_mapped_enterprise_tests: