-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Justfile to execute typical (cargo) commands
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# run tests/checks that are also run by github actions | ||
ci: | ||
cargo fmt --all -- --check | ||
cargo check --tests --examples | ||
cargo test | ||
cargo clippy -- -D warnings | ||
|
||
# run clippy in pedantic mode (but warnings only) | ||
clippy_pedantic: | ||
cargo clippy --all-targets -- -W clippy::pedantic | ||
|
||
# run clippy (from nightly) in pedantic mode (but warnings only). | ||
# you need to install nightly via rustup, e.g.: `rustup toolchain install nightly --component clippy` | ||
clippy_nightly: | ||
cargo +nightly clippy --all-targets -- -W clippy::pedantic |