chore(ci): pin the Rust toolchain, so a clippy or rustfmt release cannot turn lint red with no code change
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 55/100
- Tipo de issue
- Refatoração
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- github-actions, rust, wasm
- Domínio
- build-system, ci-cd
Direção de pesquisa
Start with .github/actions/setup-rust/action.yml, scripts/rs, .github/scripts/classify-changes.sh, and docs/src/architecture/cicd.md to trace how CI, local commands, and documentation select Rust. Check how the Worker wasm32 build uses worker-build and wrangler, then verify the acceptance criteria, including the throwaway pin-change control. Done means one exact version drives repository commands and CI, jobs report the compiler version, and docs/ explains the bump process.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Context
CI installs the Rust toolchain as stable (.github/actions/setup-rust/action.yml:34, through dtolnay/rust-toolchain). There is no rust-toolchain or rust-toolchain.toml file, and no rust-version in any manifest. scripts/rs also hard-codes stable (scripts/rs:20, rustup which --toolchain stable rustc). Locally, Homebrew's cargo 1.98.1 comes first on PATH while rustup's stable is 1.99.0 (its header records this, measured 2026-10-18), so a bare cargo and scripts/rs cargo are different compilers.
The lint job added by #87 runs cargo clippy ... -- -D warnings. Clippy adds lints in most releases, so on a floating toolchain a new stable release will eventually turn lint red with no change to the code. No such release has happened yet: the 47 warnings that #87 had to fix first were there because clippy had never run in CI, not because a release moved. That is why this is a risk to remove now, not an incident to fix.
Problem
- A rustc, clippy or rustfmt release breaks
lint(and can changefmt --check) on whichever pull request lands next, and onmain. - CI and a developer's machine can disagree about which lints exist.
- There is no single place that says which compiler this repository is built and tested with.
Proposal
- A
rust-toolchain.tomlnaming an exact version, with the components (clippy,rustfmt) and thewasm32-unknown-unknowntarget. Decide how CI installs it (read the version from the file, or let rustup honour the file) so the version lives in one place. - Make
scripts/rsfollow the pin instead ofstable. - Write down how the pin is bumped. Dependabot does not bump
rustc, so this is a deliberate, small pull request (or a scheduled one): bump, runcargo clippy --fixfor new lints, and land them together, instead of finding them on an unrelated pull request. - Check it against the other pins that move with the compiler:
worker-build0.8.7 and wrangler 4.151.2 (both in thesetup-rustaction) and the Worker's wasm32 build. - Keep it separate from an MSRV (
rust-version), which is a different question and not set today.
classify-changes.sh already treats a path starting rust-toolchain as Rust, so a change to the pin runs the Rust jobs.
Acceptance criteria
- One file defines the version, and CI,
scripts/rsand a plaincargoin the repository all use it. Each CI job prints therustc --versionit used. - The control: change the pin to a different version on a throwaway branch, and the jobs report that version (and nothing else moves).
- The bump procedure is written down in
docs/. -
docs/src/architecture/cicd.md("the Rust toolchain isstable, not pinned, so a new clippy or rustfmt release can faillint") is updated to say what is pinned and how to bump it.
References
#40, #87; .github/actions/setup-rust/action.yml; scripts/rs; .github/scripts/classify-changes.sh; docs/src/architecture/cicd.md, "Permissions and supply chain".
- Linguagem predominante
- Rust
- Estrelas
- 0
- Forks
- 0
- Merge médio
- 1h 35min
- PRs com merge (30d)
- 67
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de aRustyDev/thrust
-
area:process prio:p1 type:security
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
Mantenedores costumam responder em até 1 dia
-
area:process bug prio:p1
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 38/100
Mantenedores costumam responder em até 1 dia
-
area:process prio:p1
Dificuldade 4/5 1-2 dias Facilidade para iniciantes 55/100
Mantenedores costumam responder em até 1 dia
-
area:process prio:p1
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 56/100
Mantenedores costumam responder em até 1 dia
-
area:app prio:p0 review:fable-2026-10-19
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
Mantenedores costumam responder em até 1 dia
Todas as issues de aRustyDev/thrust
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
area:frontend kind:bug priority:p3 ready
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
bug priority: medium ui
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
storytold/vectorcraft#6333 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug lexer
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
yara-x fails to build with rsa 0.10.0: unresolved import rsa::Pkcs1v15SignTalvez já em andamento @CfirTsabari assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 87/100
VirusTotal/yara-x#865 ·
Mantenedores costumam responder em até 1 dia