rust plugin: use rust-toolchain by default if present
Metadata
Current evaluation
Merged PR #2613 in commit 374f042a5, making the Rust plugin use a source rust-toolchain file by default and fall back to stable only when no explicit setting is supplied.
Resolution: closed resolved
Reason: PR #2613 was merged as commit 374f042a5. The change makes toolchain selection honor rust-toolchain in the source, using stable only as the final fallback.
Evaluated by: mr-cal-bot
No scores available.
Issue body
If the plugin options are not used and a rust-toolchain file
is found in the source, use that and only default to the
stable toolchain channel as a last resort.
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #2613 in commit 374f042a5, making the Rust plugin use a source rust-toolchain file by default and fall back to stable only when no explicit setting is supplied. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #2613 made the Rust plugin use the source’s rust-toolchain file by default, falling back to the stable channel only when no explicit options or toolchain file are present. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged. The Rust plugin now defaults to a rust-toolchain file if present, falling back to the stable channel. Approved by a reviewer and passed CI checks before merge. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Updates the Rust plugin to use a rust-toolchain file when present, falling back to stable. Merged despite an unrelated CI test failure noted by the author. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/snapcraft#2538
(confidence 80%)
Earlier merged work corrected Rust channel handling and unified toolchain installation.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2538 rust plugin: fix usage of rust-channel | snapcraft | merged | Merged PR #2538 fixed Rust plugin toolchain setup by using rustup instead of the obsolete rustup.sh --channel argument; resolving commit: 4eb089546. | |
| #2434 rust plugin: refactor to use the latest rustup | snapcraft | merged | Merged PR #2434 in commit 3e821ca8d, updating the Rust plugin for current rustup, sharing toolchain storage, and adopting .cargo/config. | |
| #2431 rust plugin: update to use latest rustup command options | snapcraft | merged | Merged PR #2431 updated the Rust plugin to use current rustup options instead of deprecated commands; landed as commit 3e821ca8d. |