mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 13:01:21 +03:00
This is mostly a reaction in response to https://blog.rust-lang.org/2026/08/20/supply-chain-attack-on-arrayref/ I don't know when exactly `cargo clippy` and similar commands (check, build, run etc.) may update dependencies and it does not look like they actively pull the package index and update yanked crates. We also keep the lockfile updated all the time by checking in CI. Still, all commands better use --locked as a precaution.
10 lines
262 B
Bash
Executable File
10 lines
262 B
Bash
Executable File
#!/bin/sh
|
|
# Run clippy for all Rust code in the project.
|
|
#
|
|
# To check, run
|
|
# scripts/clippy.sh
|
|
#
|
|
# To automatically fix warnings, run
|
|
# scripts/clippy.sh --fix --allow-dirty
|
|
cargo clippy --locked --workspace --all-targets --all-features "$@" -- -D warnings
|