From 9fc6a17f10af59e53457c04a684a9677feb12ea3 Mon Sep 17 00:00:00 2001 From: amtoine Date: Sun, 27 Aug 2023 10:42:32 +0200 Subject: [PATCH] add a Makefile to run all the CI checks locally this Makefile also allows to format the code and generate the documentation locally. --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..53d5898 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +CLIPPY_OPTIONS="-D warnings" + +check: + cargo fmt --all -- --check + cargo check --workspace --lib + cargo check --workspace --tests + cargo clippy --workspace -- "${CLIPPY_OPTIONS}" + cargo test --workspace + +fmt: + cargo fmt --all + +doc: + cargo doc --document-private-items --no-deps --open