From 3d3e3010b380f8bbaed209a92f453f8e2e1e69ed Mon Sep 17 00:00:00 2001 From: Chevdor Date: Wed, 28 Jul 2021 16:29:33 +0200 Subject: [PATCH] Add justfile (#166) --- justfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..251c5af --- /dev/null +++ b/justfile @@ -0,0 +1,18 @@ +_default: + just --list + +# Run rustfmt and ensure the code meets the expectation of the checks in the CI +format: + cargo +nightly fmt --all + +# Run basic checks similar to what the CI does to ensure your code is fine +check: + cargo +nightly fmt --all -- --check + cargo +stable clippy --all-targets --all-features -- -D warnings + +# Run the tests +test: + cargo test --all-features + +# So you are ready? This runs format, check and test +ready: format check test