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 diff --git a/.gitignore b/.gitignore index fedaa2b..09c28b0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ /target .env + +# macOS +.DS_Store diff --git a/Cargo.toml b/Cargo.toml index 10bd97c..c398458 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,8 @@ [package] name = "TODO" version = "0.1.0" -edition = "2021" +edition = "2024" license = "MIT" -# rust-version = "1.83" exclude = [".github/"] repository = "TODO" 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 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"