rust plugin: add rustup profile
Metadata
Current evaluation
Merged. Updates the Rust plugin to enforce the minimal rustup profile, resolving build failures where clippy and rustfmt are unavailable. The implementation applies the minimal profile universally and includes updated unit tests.
Suggested action: —
No scores available.
Issue body
On some environment, some components can't be downloaded by rustup.
It causes the following error on build.snapcraft.io:
error: some components unavailable for download for channel stable:
'clippy', 'rustfmt'
To fix it, I added _get_rustup_profile method to adjust profile.
If profile is minimal, 'clippy' and 'rustfmt' will be skipped.
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Updates the Rust plugin to enforce the minimal rustup profile, resolving build failures where clippy and rustfmt are unavailable. The implementation applies the minimal profile universally and includes updated unit tests. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Configured the Rust plugin to use the minimal rustup profile, resolving CI build failures where clippy and rustfmt were unavailable. Updated unit tests accordingly. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Adds rustup profile configuration to the Rust plugin. Defaults to minimal to prevent build failures when clippy and rustfmt are unavailable on specific architectures or CI environments. Tests updated accordingly. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2431 rust plugin: update to use latest rustup command options | snapcraft | merged | Merged update to the Rust plugin replacing deprecated rustup command options with current equivalents. Approved by a reviewer, passed CI, modified five files, and maintained 94.5% test coverage. | |
| #2434 rust plugin: refactor to use the latest rustup | snapcraft | merged | Merged Rust plugin refactor for latest rustup. Removed deprecated flags, added command qualifiers, established shared rustup/cargo directory, and standardized config. Approved and passed CI. | |
| #2438 rust plugin: new link for rustup | snapcraft | merged | Merged into master after approval and passing CI. Updated the rust plugin to use a new rustup link, addressing LP #1662960. Modified 3 files with 11 additions and 6 deletions. |