From acf795c2e4521c19c0539d53d76b46079791f3be Mon Sep 17 00:00:00 2001 From: Elmar Athmer Date: Thu, 19 Oct 2023 23:31:36 +0200 Subject: [PATCH] add Justfile to execute typical (cargo) commands --- Justfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Justfile diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..2edeab7 --- /dev/null +++ b/Justfile @@ -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