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