Fix issue where Rust cross compile target is ignored
Metadata
Current evaluation
Merged PR #2264 as commit 7e2017783, fixing the Rust plugin to honor cross-compilation targets while preserving a project's existing .cargo/config.
Resolution: closed resolved
Reason: PR #2264 was merged into master as commit 7e2017783. It creates .cargo/config only when absent, so project-provided cross-compilation settings are no longer ignored.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [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] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)?
- [x] Have you successfully run `./runtests.sh static`?
- [x] Have you successfully run `./runtests.sh tests/unit`?
I have tested that I can still compile the snap for my native arch and as well as fixing the issue I was having. Please see https://forum.snapcraft.io/t/bug-rust-plugin-not-using-correct-pkg-config-path/7302/4 for more information.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #2264 as commit 7e2017783, fixing the Rust plugin to honor cross-compilation targets while preserving a project's existing .cargo/config. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #2264 and fixed Rust cross-compilation by generating .cargo/config only when absent, preserving project-provided targets and pkg-config paths. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #2264 to fix the Rust plugin ignoring cross-compilation targets. It now creates .cargo/config only when absent, preserving an existing project configuration. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged fix for Rust cross-compilation target being ignored. The plugin now only generates a .cargo/config file if one is missing, preserving existing project configs while fixing cross-compile paths. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix for Rust cross-compilation target being ignored. The change ensures .cargo/config is only generated when absent, preserving existing project configurations. Tests passed and coverage increased. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1350 rust plugin: Add support for cross-compilation | snapcraft | merged | Merged PR #1350 added --target-arch cross-compilation support for Rust plugin parts in commit 94fb1060e. | |
| #2170 rust plugin: fix cargo builds and run tests | snapcraft | merged | Merged as commit 4f80a1051, fixing Rust plugin Cargo builds, skipping tests during cross-compilation, and adding tests. |