From e8a92d7e0799c1bf8c90ce0c5b1c86f528c6c159 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Sat, 17 May 2025 20:10:23 +0200 Subject: [PATCH] chore: organize justfiles --- .gitignore | 1 + Justfile | 44 +++++++++++++++++--------------------------- alex/Justfile | 16 ++++++++++++++++ backup/Justfile | 16 ++++++++++++++++ 4 files changed, 50 insertions(+), 27 deletions(-) create mode 100644 alex/Justfile create mode 100644 backup/Justfile diff --git a/.gitignore b/.gitignore index 3695da7..0f92b30 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ target/ # testing files *.jar data*/ +*.log diff --git a/Justfile b/Justfile index 511d61f..76be6db 100644 --- a/Justfile +++ b/Justfile @@ -1,35 +1,25 @@ -[group('build')] -build pkg: - cargo build --package {{ pkg }} +build: + cargo build --frozen --workspace alias b := build -[group('build')] -build-all: - cargo build --workspace -alias ba := build-all - -[group('test')] -test pkg: - cargo test --package {{ pkg }} +test: + cargo test --frozen --workspace alias t := test -[group('test')] -test-all: - cargo test --workspace -alias ta := test-all - -[group('check')] -check pkg: - cargo fmt --check --package {{ pkg }} - cargo clippy --package {{ pkg }} -- \ +check: + cargo fmt --check --all + cargo clippy \ + --frozen \ + --all -- \ --no-deps \ --deny 'clippy::all' alias c := check -[group('check')] -check-all: - cargo fmt --check --all - cargo clippy --all -- \ - --no-deps \ - --deny 'clippy::all' -alias ca := check-all +fetch: + cargo fetch --locked + +clean: + cargo clean + +doc: + cargo doc --workspace --frozen diff --git a/alex/Justfile b/alex/Justfile new file mode 100644 index 0000000..cc02572 --- /dev/null +++ b/alex/Justfile @@ -0,0 +1,16 @@ +build: + cargo build --frozen +alias b := build + +test: + cargo test --frozen +alias t := test + +check: + cargo fmt --check + cargo clippy \ + --frozen \ + -- \ + --no-deps \ + --deny 'clippy::all' +alias c := check diff --git a/backup/Justfile b/backup/Justfile new file mode 100644 index 0000000..cc02572 --- /dev/null +++ b/backup/Justfile @@ -0,0 +1,16 @@ +build: + cargo build --frozen +alias b := build + +test: + cargo test --frozen +alias t := test + +check: + cargo fmt --check + cargo clippy \ + --frozen \ + -- \ + --no-deps \ + --deny 'clippy::all' +alias c := check