Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .agents/cloud-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@" ;;
Expand All @@ -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
}
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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'
}


Expand Down
5 changes: 5 additions & 0 deletions .changeset/rust-1-100-0.md
Original file line number Diff line number Diff line change
@@ -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.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.18 --locked --root "$RUNNER_TEMP/hawk"

- name: Check consumer crate with the Hawk compiler
env:
Expand All @@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/oxlint-config/toolchain.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
}
},
"python": "3.13",
"rust": "1.99.1",
"rust": "1.100.0",
"actions": {
"actions/checkout": {
"sha": "3d3c42e5aac5ba805825da76410c181273ba90b1",
Expand Down
2 changes: 1 addition & 1 deletion rust-lints/stella_source_lint/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.99.1"
channel = "1.100.0"
profile = "minimal"
components = ["rustfmt", "clippy"]
Loading