From 3690679cced9e7941e730f8e283b1d63b046d4eb Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Mon, 27 May 2024 22:12:56 +0200 Subject: [PATCH] Add simple justfile (#610) --- .formatter.exs | 3 +++ justfile | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .formatter.exs create mode 100644 justfile diff --git a/.formatter.exs b/.formatter.exs new file mode 100644 index 00000000..e9660757 --- /dev/null +++ b/.formatter.exs @@ -0,0 +1,3 @@ +[ + subdirectories: ["rustler_tests", "rustler_mix"] +] diff --git a/justfile b/justfile new file mode 100644 index 00000000..3312ef21 --- /dev/null +++ b/justfile @@ -0,0 +1,22 @@ +build: + cargo build + cd rustler_mix && mix deps.get && mix compile + +test: + cargo test -q + cd rustler_mix && mix deps.get && mix test + cd rustler_tests && mix deps.get && mix test + +test-all: test + cd rustler_mix && ./test.sh + +check-format: + cargo fmt --all -- --check + mix format --check-formatted + +format: + cargo fmt --all + mix format + +lint: + cargo clippy --all-targets --all-features