rust plugin does not cross-compile
Metadata
Current evaluation
Rust plugin remains unable to cross-compile and emits host-architecture binaries; target mapping and toolchain setup are identified, but linking and core implementation remain unresolved.
Suggested action: keep open
Reason: The current craft-parts Rust plugin neither sets CARGO_BUILD_TARGET nor passes Cargo --target, and its pull commands do not install the target with rustup. A maintainer supplied a design and reproducible armhf example, but also documented unresolved linker failures; snapcraft#1350 is related work in another project, with no corresponding fix in this repository.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
68
Quick Win:
20
Complexity:
64
Confidence:
93
Actionability:
80
|
keep open | Rust plugin remains unable to cross-compile and emits host-architecture binaries; target mapping and toolchain setup are identified, but linking and core implementation remain unresolved. | |
| qwen/qwen3.6-35b-a3b |
Impact:
70
Quick Win:
22
Complexity:
60
Confidence:
80
Actionability:
80
|
keep open | The rust plugin in craft-parts does not support cross-compilation, always building for the host architecture. Maintainer provided a working PR branch. | |
| qwen/qwen3.8-27b |
Impact:
65
Quick Win:
26
Staleness:
45
Complexity:
60
Confidence:
70
Support Request:
5
|
keep open | Rust plugin builds for host arch instead of target arch when cross-compiling. Triaged by maintainer with a fix plan (map arch to rust triple, rustup target add, set CARGO_BUILD_TARGET); a working PR branch was shared Aug 2025, but no fix has landed in craft-parts yet. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
75
Complexity:
60
Confidence:
85
Support Request:
5
|
keep open | The rust plugin incorrectly builds for the host architecture instead of cross-compiling to the target. Triaged by a maintainer who outlined a fix and linked a working PR, but has seen no activity for over 11 months. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
68
Complexity:
45
Confidence:
85
Support Request:
0
|
keep open | Rust plugin fails to cross-compile, building for host architecture instead. Triaged bug with maintainer-proposed fix and a working PR branch, but inactive for over 10 months. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft#1350
(confidence 95%)
Merged commit 94fb1060e adds Rust cross-compilation support in snapcraft, but the current craft-parts plugin still lacks it.
-
Related To:
uv-snap#9
(confidence 90%)
The maintainer reported that this uv-specific branch appears to work, making it a potential reproducer or workaround rather than a craft-parts fix.
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. |