mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 21:00:03 -04:00
Use cargo cranky instead of cargo clippy (#1820)
* Use cargo cranky instead of cargo clippy cargo cranky (https://github.com/ericseppanen/cargo-cranky) is a new tool that passes lints specified in a Cranky.toml to cargo clippy. This is a possible solution to https://github.com/rust-lang/cargo/issues/5034 * Remove `-W clippy::all` from `check.sh` (rely on `Cranky.toml` instead)
This commit is contained in:
@@ -6,6 +6,8 @@ set -eux
|
||||
# Checks all tests, lints etc.
|
||||
# Basically does what the CI does.
|
||||
|
||||
cargo install cargo-cranky # Uses lints defined in Cranky.toml. See https://github.com/ericseppanen/cargo-cranky
|
||||
|
||||
RUSTFLAGS="-D warnings"
|
||||
RUSTDOCFLAGS="-D warnings" # https://github.com/emilk/egui/pull/1454
|
||||
|
||||
@@ -13,7 +15,7 @@ cargo check --workspace --all-targets
|
||||
cargo check --workspace --all-targets --all-features
|
||||
cargo check -p egui_demo_app --lib --target wasm32-unknown-unknown
|
||||
cargo check -p egui_demo_app --lib --target wasm32-unknown-unknown --all-features
|
||||
cargo clippy --workspace --all-targets --all-features -- -D warnings -W clippy::all
|
||||
cargo cranky --workspace --all-targets --all-features -- -D warnings
|
||||
cargo test --workspace --all-targets --all-features
|
||||
cargo test --workspace --doc # slow - checks all doc-tests
|
||||
cargo fmt --all -- --check
|
||||
|
||||
Reference in New Issue
Block a user