From 6ff7f8ee4fa00734048f3a0754ebd6b1eb70f106 Mon Sep 17 00:00:00 2001 From: jan-kubica Date: Wed, 18 Nov 2026 22:05:22 +0100 Subject: [PATCH 1/2] chore: pin shared Rust toolchain to 1.100.0 --- .agents/cloud-setup.sh | 22 +++++++++---------- .changeset/rust-1-100-0.md | 5 +++++ .github/workflows/ci.yml | 10 ++++----- README.md | 4 ++-- packages/oxlint-config/toolchain.json | 2 +- .../stella_source_lint/rust-toolchain.toml | 2 +- 6 files changed, 25 insertions(+), 20 deletions(-) create mode 100644 .changeset/rust-1-100-0.md diff --git a/.agents/cloud-setup.sh b/.agents/cloud-setup.sh index 45724031..3c04c514 100755 --- a/.agents/cloud-setup.sh +++ b/.agents/cloud-setup.sh @@ -350,12 +350,12 @@ fetch_verified() { export RUSTUP_HOME=/opt/stll-cloud/rustup export CARGO_HOME=/opt/stll-cloud/cargo -export RUSTUP_TOOLCHAIN='1.99.1' +export RUSTUP_TOOLCHAIN='1.100.0' export RUSTUP_AUTO_INSTALL=0 rust_run() { local mode="$1" shift - set -- runuser -u "$OUTPUT_USER" -- env HOME="$OUTPUT_HOME" RUSTUP_HOME="$RUSTUP_HOME" CARGO_HOME="$CARGO_HOME" RUSTUP_AUTO_INSTALL=0 RUSTUP_TOOLCHAIN=1.99.1 RUSTUP_DIST_SERVER=https://static.rust-lang.org RUSTUP_UPDATE_ROOT=https://static.rust-lang.org/rustup PATH="$PATH" "$@" + set -- runuser -u "$OUTPUT_USER" -- env HOME="$OUTPUT_HOME" RUSTUP_HOME="$RUSTUP_HOME" CARGO_HOME="$CARGO_HOME" RUSTUP_AUTO_INSTALL=0 RUSTUP_TOOLCHAIN=1.100.0 RUSTUP_DIST_SERVER=https://static.rust-lang.org RUSTUP_UPDATE_ROOT=https://static.rust-lang.org/rustup PATH="$PATH" "$@" case "$mode" in local) "$@" ;; network) network_run static.rust-lang.org 180 "$@" ;; @@ -369,11 +369,11 @@ primary_rust_ready() { done [[ -x "$CARGO_HOME/bin/rustup" ]] || return 1 [[ "$(rust_run local "$CARGO_HOME/bin/rustup" --version 2>/dev/null)" == 'rustup 1.29.1 '* ]] || return 1 - [[ "$(rust_run local "$CARGO_HOME/bin/rustc" +1.99.1 --version)" == 'rustc 1.99.1 '* ]] || return 1 + [[ "$(rust_run local "$CARGO_HOME/bin/rustc" +1.100.0 --version)" == 'rustc 1.100.0 '* ]] || return 1 local host - host="$(rust_run local "$CARGO_HOME/bin/rustc" +1.99.1 -vV | awk '$1 == "host:" { print $2 }')" || return 1 - rust_run local "$CARGO_HOME/bin/rustup" component list --toolchain '1.99.1' --installed | awk -v name='clippy' -v host="$host" '$1 == name || $1 == name "-" host { found=1 } END { exit !found }' || return 1 - rust_run local "$CARGO_HOME/bin/rustup" component list --toolchain '1.99.1' --installed | awk -v name='rustfmt' -v host="$host" '$1 == name || $1 == name "-" host { found=1 } END { exit !found }' || return 1 + host="$(rust_run local "$CARGO_HOME/bin/rustc" +1.100.0 -vV | awk '$1 == "host:" { print $2 }')" || return 1 + rust_run local "$CARGO_HOME/bin/rustup" component list --toolchain '1.100.0' --installed | awk -v name='clippy' -v host="$host" '$1 == name || $1 == name "-" host { found=1 } END { exit !found }' || return 1 + rust_run local "$CARGO_HOME/bin/rustup" component list --toolchain '1.100.0' --installed | awk -v name='rustfmt' -v host="$host" '$1 == name || $1 == name "-" host { found=1 } END { exit !found }' || return 1 return 0 } @@ -412,14 +412,14 @@ esac fi rust_run local "$CARGO_HOME/bin/rustup" set auto-self-update disable if ! primary_rust_ready; then - rust_run network "$CARGO_HOME/bin/rustup" toolchain install 1.99.1 --profile minimal --no-self-update '--component' 'clippy' '--component' 'rustfmt' + rust_run network "$CARGO_HOME/bin/rustup" toolchain install 1.100.0 --profile minimal --no-self-update '--component' 'clippy' '--component' 'rustfmt' fi - rust_run local "$CARGO_HOME/bin/rustup" default 1.99.1 + rust_run local "$CARGO_HOME/bin/rustup" default 1.100.0 verify_rust for tool in rustup cargo rustc rustdoc cargo-clippy clippy-driver rustfmt cargo-fmt; do # Launchers persist the system homes in fresh shells without profile sourcing. - printf '%s\n' '#!/bin/sh' 'export RUSTUP_HOME=/opt/stll-cloud/rustup' 'export CARGO_HOME=/opt/stll-cloud/cargo' 'export RUSTUP_AUTO_INSTALL=0' 'export RUSTUP_TOOLCHAIN=1.99.1' "exec /opt/stll-cloud/cargo/bin/$tool \"\$@\"" > "$scratch/$tool" + printf '%s\n' '#!/bin/sh' 'export RUSTUP_HOME=/opt/stll-cloud/rustup' 'export CARGO_HOME=/opt/stll-cloud/cargo' 'export RUSTUP_AUTO_INSTALL=0' 'export RUSTUP_TOOLCHAIN=1.100.0' "exec /opt/stll-cloud/cargo/bin/$tool \"\$@\"" > "$scratch/$tool" if ! cmp -s "$scratch/$tool" "/usr/local/bin/$tool"; then [[ ! -d "/usr/local/bin/$tool" ]] || fail 'Install target is a directory; remove it and rerun install:' "/usr/local/bin/$tool" install -m 755 "$scratch/$tool" "/usr/local/bin/$tool" @@ -476,7 +476,7 @@ export PATH='/opt/stll-cloud/node/26.12.1/bin:/opt/stll-cloud/bun/1.4.4:/usr/loc unset _stll_cloud_remaining _stll_cloud_result _stll_cloud_separator _stll_cloud_part _stll_cloud_more export RUSTUP_HOME=/opt/stll-cloud/rustup export CARGO_HOME=/opt/stll-cloud/cargo -export RUSTUP_TOOLCHAIN='1.99.1' +export RUSTUP_TOOLCHAIN='1.100.0' export RUSTUP_AUTO_INSTALL=0 STLL_CLOUD_PROFILE if ! cmp -s "$temporary" '/etc/profile.d/stll-cloud.sh'; then install -m 644 "$temporary" '/etc/profile.d/stll-cloud.sh'; fi @@ -513,7 +513,7 @@ done ) verify_shell_environment() { [[ -f '/etc/profile.d/stll-cloud.sh' && ! -L '/etc/profile.d/stll-cloud.sh' && "$(stat -c '%h:%u' '/etc/profile.d/stll-cloud.sh')" == 1:0 ]] || fail 'Managed shell environment is unavailable; run install' - [[ "$(sha256sum -- '/etc/profile.d/stll-cloud.sh' | cut -d ' ' -f1)" == '73486000990cd00a731b5df4a4a7774c7ceb6af5f182c94b293bd78374dd6d2b' ]] || fail 'Managed shell environment differs; run install' + [[ "$(sha256sum -- '/etc/profile.d/stll-cloud.sh' | cut -d ' ' -f1)" == '90f54c9a55609402f0a3dda4e0060d93da7d4eb39ef9dace8010ebfc36bd05eb' ]] || fail 'Managed shell environment differs; run install' } diff --git a/.changeset/rust-1-100-0.md b/.changeset/rust-1-100-0.md new file mode 100644 index 00000000..36105d6b --- /dev/null +++ b/.changeset/rust-1-100-0.md @@ -0,0 +1,5 @@ +--- +"@stll/oxlint-config": minor +--- + +Pins the shared Rust toolchain, the generated cloud setup and the owner CI jobs to 1.100.0. Consumers that pin Rust 1.99.1 in toolchain files, workflows, commands or images must move to 1.100.0 or declare a tracked `rustExceptions` entry. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e239722e..4c0d4886 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -192,11 +192,11 @@ jobs: persist-credentials: false - name: Install stable Rust toolchain - run: rustup toolchain install 1.99.1 --profile minimal + run: rustup toolchain install 1.100.0 --profile minimal - name: Test stable source lint env: - RUSTUP_TOOLCHAIN: "1.99.1" + RUSTUP_TOOLCHAIN: "1.100.0" run: cargo test --manifest-path rust-lints/stella_source_lint/Cargo.toml --locked hawk-compatibility: @@ -212,13 +212,13 @@ jobs: persist-credentials: false - name: Install shared Hawk compiler - run: rustup toolchain install 1.99.1 --profile minimal --component rustc-dev + run: rustup toolchain install 1.100.0 --profile minimal --component rustc-dev - name: Build pinned Hawk # Hawk's documented source install requires rustc_private opt-in. env: RUSTC_BOOTSTRAP: "1" - run: cargo +1.99.1 install cargo-hawk --version 0.1.17 --locked --root "$RUNNER_TEMP/hawk" + run: cargo +1.100.0 install cargo-hawk --version 0.1.17 --locked --root "$RUNNER_TEMP/hawk" - name: Check consumer crate with the Hawk compiler env: @@ -232,4 +232,4 @@ jobs: lib = "stella_regex_set" reason = "Shared native library compatibility probe" HAWK_CONFIG - cargo +1.99.1 hawk check --target-dir "$RUNNER_TEMP/hawk-target" -A hawk::dead_public -A hawk::unnecessary_public + cargo +1.100.0 hawk check --target-dir "$RUNNER_TEMP/hawk-target" -A hawk::dead_public -A hawk::unnecessary_public diff --git a/README.md b/README.md index 13c4b71a..5ff2d470 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ Missing packages or jobs, private packages, absent setup-node selectors and floor mismatches fail configuration validation. `optOuts` is optional when only `engineFloors` is declared. -The Rust stable pin is `1.99.0`. Floating channels and off-pin Rust references +The Rust stable pin is `1.100.0`. Floating channels and off-pin Rust references fail the shared check. Cargo `rust-version` declarations remain minimum support versions and may be lower than the shared pin. Rust setup actions (`dtolnay/rust-toolchain` and `actions-rust-lang/setup-rust-toolchain`) require @@ -179,7 +179,7 @@ Hawk 0.1.11 is the current temporary Rust exception: its driver fails to build with 1.99.0 due to compiler-private API changes (E0061 and E0308). It uses 1.97.1 until [tracking issue #99](https://github.com/stella/tooling/issues/99) is resolved, with the exception expiring on 2026-11-11. The stable source checker -and all ordinary Rust work use the shared 1.99.0 pin. Consumer repositories that +and all ordinary Rust work use the shared pin. Consumer repositories that run Hawk need the same exact, tracked exception declaration. `engines.node` and `requires-python` are support ranges: they must include the diff --git a/packages/oxlint-config/toolchain.json b/packages/oxlint-config/toolchain.json index d6290a22..e11f5cba 100644 --- a/packages/oxlint-config/toolchain.json +++ b/packages/oxlint-config/toolchain.json @@ -99,7 +99,7 @@ } }, "python": "3.13", - "rust": "1.99.1", + "rust": "1.100.0", "actions": { "actions/checkout": { "sha": "3d3c42e5aac5ba805825da76410c181273ba90b1", diff --git a/rust-lints/stella_source_lint/rust-toolchain.toml b/rust-lints/stella_source_lint/rust-toolchain.toml index 58eef2cc..63202c6f 100644 --- a/rust-lints/stella_source_lint/rust-toolchain.toml +++ b/rust-lints/stella_source_lint/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.99.1" +channel = "1.100.0" profile = "minimal" components = ["rustfmt", "clippy"] From 7b71666847ddbfdc3390e0d3d70db9b0c725f6a3 Mon Sep 17 00:00:00 2001 From: jan-kubica Date: Wed, 18 Nov 2026 22:09:12 +0100 Subject: [PATCH 2/2] ci: build Hawk 0.1.18 for Rust 1.100.0 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c0d4886..7798093d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -218,7 +218,7 @@ jobs: # Hawk's documented source install requires rustc_private opt-in. env: RUSTC_BOOTSTRAP: "1" - run: cargo +1.100.0 install cargo-hawk --version 0.1.17 --locked --root "$RUNNER_TEMP/hawk" + run: cargo +1.100.0 install cargo-hawk --version 0.1.18 --locked --root "$RUNNER_TEMP/hawk" - name: Check consumer crate with the Hawk compiler env: