From cc53e464457e2c5e59ec17bc29fc6921778697b8 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 1 May 2026 10:42:46 -0500 Subject: [PATCH 1/2] chore(ci): Track specific tags --- .github/workflows/ci.yml | 14 +++++++------- .github/workflows/committed.yml | 2 +- .github/workflows/rust-next.yml | 4 ++-- .github/workflows/spelling.yml | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25e12958..2f8fbb3c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: with: toolchain: ${{ matrix.rust }} - name: Initialize cache - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 - name: Install cargo-hack uses: taiki-e/install-action@97a5807a604e12de3a13b52d868ebecaeeea757c # v2.75.4 with: @@ -76,7 +76,7 @@ jobs: with: toolchain: stable - name: Initialize cache - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 - name: Install cargo-hack uses: taiki-e/install-action@97a5807a604e12de3a13b52d868ebecaeeea757c # v2.75.4 with: @@ -118,7 +118,7 @@ jobs: with: toolchain: stable - name: Initialize cache - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 - name: "Is lockfile updated?" run: cargo update --workspace --locked docs: @@ -134,7 +134,7 @@ jobs: with: toolchain: "1.95" # STABLE - name: Initialize cache - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 - name: Check documentation env: RUSTDOCFLAGS: -D warnings @@ -153,7 +153,7 @@ jobs: toolchain: "1.95" # STABLE components: rustfmt - name: Initialize cache - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 - name: Check formatting run: cargo fmt --check clippy: @@ -172,7 +172,7 @@ jobs: toolchain: "1.95" # STABLE components: clippy - name: Initialize cache - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 - name: Install SARIF tools run: cargo install clippy-sarif --locked - name: Install SARIF tools @@ -204,7 +204,7 @@ jobs: with: toolchain: stable - name: Initialize cache - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 - name: Install cargo-tarpaulin run: cargo install cargo-tarpaulin - name: Gather coverage diff --git a/.github/workflows/committed.yml b/.github/workflows/committed.yml index f15e8152..3f18252e 100644 --- a/.github/workflows/committed.yml +++ b/.github/workflows/committed.yml @@ -26,4 +26,4 @@ jobs: fetch-depth: 0 persist-credentials: false - name: Lint Commits - uses: crate-ci/committed@4cd58ed75e5f581ba45f42ef52e055cc001def37 # master + uses: crate-ci/committed@faeed42f2e10c244533a01525f13c4d8b6ce383f # v1.11.1 diff --git a/.github/workflows/rust-next.yml b/.github/workflows/rust-next.yml index 2d681647..d749e86a 100644 --- a/.github/workflows/rust-next.yml +++ b/.github/workflows/rust-next.yml @@ -41,7 +41,7 @@ jobs: with: toolchain: ${{ matrix.rust }} - name: Initialize cache - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 - name: Install cargo-hack uses: taiki-e/install-action@97a5807a604e12de3a13b52d868ebecaeeea757c # v2.75.4 with: @@ -68,7 +68,7 @@ jobs: with: toolchain: stable - name: Initialize cache - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 - name: Install cargo-hack uses: taiki-e/install-action@97a5807a604e12de3a13b52d868ebecaeeea757c # v2.75.4 with: diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index e3cec04b..37a8847f 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -24,4 +24,4 @@ jobs: with: persist-credentials: false - name: Spell Check Repo - uses: crate-ci/typos@8f11c0dc0f31c780c45b3dd5b72ff4b48a350b75 # master + uses: crate-ci/typos@bbaefadf97b0ec5fdc942684b647f1a6ab250274 # v1.46.0 From f3e0cc04a86c05122a0cca68ad5a2a053fd00221 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 1 May 2026 11:00:39 -0500 Subject: [PATCH 2/2] chore: Experiment with more lints --- Cargo.toml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 8c7aef7c..016a8a8c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,9 @@ include = [ [workspace.lints.rust] rust_2018_idioms = { level = "warn", priority = -1 } + +non_ascii_idents = "warn" +trivial_numeric_casts = "warn" unnameable_types = "warn" unreachable_pub = "warn" unsafe_op_in_unsafe_fn = "warn" @@ -26,11 +29,16 @@ unused_macro_rules = "warn" unused_qualifications = "warn" [workspace.lints.clippy] +allow_attributes_without_reason = "warn" bool_assert_comparison = "allow" branches_sharing_code = "allow" +cast_possible_truncation = "warn" +cast_possible_wrap = "warn" +cast_sign_loss = "warn" checked_conversions = "warn" collapsible_else_if = "allow" collapsible_match = "allow" +collection_is_never_read = "warn" create_dir = "warn" dbg_macro = "warn" debug_assert_with_mut_call = "warn" @@ -43,8 +51,10 @@ explicit_into_iter_loop = "warn" fallible_impl_from = "warn" filter_map_next = "warn" flat_map_option = "warn" +float_cmp = "warn" float_cmp_const = "warn" fn_params_excessive_bools = "warn" +fn_to_numeric_cast_any = "warn" from_iter_instead_of_collect = "warn" if_same_then_else = "allow" implicit_clone = "warn" @@ -61,10 +71,12 @@ linkedlist = "warn" lossy_float_literal = "warn" macro_use_imports = "warn" mem_forget = "warn" +mismatching_type_param_order = "warn" mutex_integer = "warn" needless_continue = "allow" needless_for_each = "warn" negative_feature_names = "warn" +partial_pub_fields = "warn" path_buf_push_overwrite = "warn" ptr_as_ptr = "warn" rc_mutex = "warn" @@ -75,13 +87,19 @@ result_large_err = "allow" same_functions_in_if_condition = "warn" self_named_module_files = "warn" semicolon_if_nothing_returned = "warn" +should_panic_without_expect = "warn" str_to_string = "warn" string_add = "warn" string_add_assign = "warn" string_lit_as_bytes = "warn" todo = "warn" trait_duplication_in_bounds = "warn" +undocumented_unsafe_blocks = "warn" uninlined_format_args = "warn" +unnecessary_safety_comment = "warn" +unnecessary_safety_doc = "warn" +unseparated_literal_suffix = "warn" +use_self = "warn" verbose_file_reads = "warn" wildcard_imports = "warn" zero_sized_map_values = "warn"