create rust workspace (#32014)
This commit is contained in:
@@ -117,6 +117,21 @@ repos:
|
||||
language: system
|
||||
files: ^experimental/sgl-router/.*\.rs$
|
||||
pass_filenames: false
|
||||
- id: clippy-rust-workspace
|
||||
name: clippy rust/ workspace (auto-fix)
|
||||
# Two steps: apply machine-applicable fixes, then fail on anything left
|
||||
# (combining --fix with -D warnings can abort the fix phase). protoc is
|
||||
# not required: sglang-grpc's build.rs falls back to a vendored binary.
|
||||
entry: bash -c 'cd rust && cargo clippy --workspace --fix --allow-dirty --allow-staged && cargo clippy --workspace -- -D warnings'
|
||||
language: system
|
||||
files: ^rust/.*\.rs$
|
||||
pass_filenames: false
|
||||
- id: rustfmt-rust-workspace
|
||||
name: rustfmt rust/ workspace
|
||||
entry: bash -c 'cd rust && cargo fmt'
|
||||
language: system
|
||||
files: ^rust/.*\.rs$
|
||||
pass_filenames: false
|
||||
- id: mint-broken-links
|
||||
name: check docs_new links (Mintlify; opt-in, requires `mint` on PATH)
|
||||
entry: bash -c 'cd docs_new && mint broken-links --check-anchors --check-redirects'
|
||||
|
||||
Reference in New Issue
Block a user