Skip to content

Commit

Permalink
add Justfile to execute typical (cargo) commands
Browse files Browse the repository at this point in the history
  • Loading branch information
elmarx authored and LukasPrediger committed Dec 21, 2023
1 parent d04fa96 commit 7a4939e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Justfile
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

0 comments on commit 7a4939e

Please sign in to comment.