From 933428348b61965629c88cb2e47c0e22ac6ef0e9 Mon Sep 17 00:00:00 2001 From: Luther Monson Date: Mon, 5 Oct 2026 08:08:28 -0700 Subject: [PATCH] chore: pin rust toolchain to 1.99 instead of floating stable A new stable ships new clippy lints; with -D warnings that turned main red the day 1.99 released (#43). The MSRV job now runs cargo +1.88 explicitly so the toolchain file does not override it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01QjFfmjfKnj4sBd2B6YAjPj --- .github/workflows/ci.yml | 4 +++- rust-toolchain.toml | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61bce4a..a990eb9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,9 @@ jobs: with: toolchain: "1.88" - uses: Swatinem/rust-cache@v2 - - run: cargo check --workspace --all-features --all-targets + # `+1.88` is explicit: rust-toolchain.toml would otherwise override the + # toolchain installed above and this job would silently check on 1.99. + - run: cargo +1.88 check --workspace --all-features --all-targets test: name: test diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..942ec47 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,11 @@ +# Pinned to a stable minor rather than floating on `stable`: a new stable +# ships new clippy lints, and with `-D warnings` that turned main red the day +# Rust 1.99 released (#43). Patch releases (1.99.x) still float in. +# +# Bump deliberately in its own PR: change the version, run +# `cargo clippy --workspace --all-targets --all-features -- -D warnings`, fix +# the new lints. The MSRV job runs `cargo +1.88` explicitly, so this file does +# not override it. +[toolchain] +channel = "1.99" +components = ["rustfmt", "clippy"]