From de9cf89a4f8d10ebe6711d0a22c3bbfb8b7e919b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Anda=20Estensen?= Date: Fri, 25 Apr 2025 09:40:26 +0200 Subject: [PATCH 1/5] chore: ignore DS_STORE --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index fedaa2b..09c28b0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ /target .env + +# macOS +.DS_Store From a9db3ff1695f9a2067c3c3a3b92e2d970d487633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Anda=20Estensen?= Date: Fri, 25 Apr 2025 09:41:24 +0200 Subject: [PATCH 2/5] chore: set MSRV to 1.86 --- Cargo.toml | 1 - rust-toolchain.toml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 10bd97c..822289f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,6 @@ name = "TODO" version = "0.1.0" edition = "2021" license = "MIT" -# rust-version = "1.83" exclude = [".github/"] repository = "TODO" diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 2a73d7c..5c3068b 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] channel = "stable" -version = "1.83.0" +version = "1.86.0" From 2b5104e3a4c2075e6ab73a417cff4b9afa4d2a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Anda=20Estensen?= Date: Fri, 25 Apr 2025 09:42:24 +0200 Subject: [PATCH 3/5] chore: use rust 2024 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 822289f..c398458 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "TODO" version = "0.1.0" -edition = "2021" +edition = "2024" license = "MIT" exclude = [".github/"] repository = "TODO" From 5ef74376a3e7c72534d4aaa4156f080414633da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Anda=20Estensen?= Date: Fri, 25 Apr 2025 09:45:19 +0200 Subject: [PATCH 4/5] chore: set MSRV to 1.86 in action --- .github/workflows/unit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 8ea2b16..301a966 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -24,7 +24,7 @@ jobs: - uses: dtolnay/rust-toolchain@master # Need to specify @master above to work with toolchain var with: - toolchain: 1.83.0 + toolchain: 1.86.0 - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true From 5056547c8daf39e9f4d1b2227b78f22584d76db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Anda=20Estensen?= Date: Fri, 25 Apr 2025 09:49:24 +0200 Subject: [PATCH 5/5] feat: add justfile --- justfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..d345441 --- /dev/null +++ b/justfile @@ -0,0 +1,23 @@ +set shell := ["bash", "-cu"] +set dotenv-load := true + +# display a help message about available commands +default: + @just --list --unsorted + + +# run all recipes required to pass CI workflows +ci: + @just fmt lint test + +# run unit tests +test: + cargo nextest run --workspace -E "kind(lib) | kind(bin) | kind(proc-macro)" + +# run collection of clippy lints +lint: + RUSTFLAGS="-D warnings" cargo clippy --examples --tests --benches --all-features --locked + +# format the code using the nightly rustfmt (as we use some nightly lints) +fmt: + cargo +nightly fmt --all