Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions hk.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ local checks = new Mapping<String, Step> {
}

// Rust.
["cargo-lockfile"] = new Step {
glob = List("Cargo.toml", "Cargo.lock", "**/Cargo.toml")
check =
"worktree=$(mktemp -d) && trap 'rm -rf \"$worktree\"' EXIT && git ls-files -z | tar --null -T - -cf - | tar -xf - -C \"$worktree\" && cargo generate-lockfile --manifest-path \"$worktree/Cargo.toml\" && diff -u Cargo.lock \"$worktree/Cargo.lock\""
profiles = slow
}
["cargo-fmt"] = (Builtins.cargo_fmt) {
glob = rustFiles
exclude = generatedFiles
Expand Down