From bbd8f42f882511418744911f94eebc7765af57f6 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 14 Jul 2022 03:00:14 +0530 Subject: [PATCH] chore(just): add justfile --- justfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..f879e01 --- /dev/null +++ b/justfile @@ -0,0 +1,27 @@ +alias b := build +alias c := check +alias cl := clippy +alias f := fmt +alias r := run +alias t := test + +set positional-arguments := true +set dotenv-load := true + +build type="": + cargo build {{ type }} + +check type="": + cargo check {{ type }} + +clippy flags="": + cargo clippy -- {{ flags }} + +fmt: + cargo fmt + +run type="": + cargo run {{ type }} + +test: + cargo nextest run