rust plugin: Add support for cross-compilation
Metadata
Current evaluation
Merged PR #1350 added --target-arch cross-compilation support for Rust plugin parts in commit 94fb1060e.
Resolution: closed resolved
Reason: PR #1350 was merged into snapcraft as commit 94fb1060e, enabling Rust-based parts to build for the architecture selected with --target-arch.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Support doing `snapcraft snap --target-arch=` with parts using the **Rust** plugin
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1350 added --target-arch cross-compilation support for Rust plugin parts in commit 94fb1060e. | |
| stealth/space-bunny-alpha | — | closed resolved | Rust plugin gained --target-arch cross-compilation support; canonical/snapcraft#1350 was merged in commit 94fb1060e. | |
| qwen/qwen3.6-35b-a3b | — | — | Cross-compilation support added to the Rust plugin for snapcraft's --target-arch flag. Approved and merged despite unresolved comments and lack of ARM hardware testing. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged after maintainer review, adding cross-compilation support for the Rust plugin. The update enables snapcraft snap --target-arch functionality for Rust-based parts. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1338 go plugin: Add support for cross-compilation | snapcraft | merged | Merged #1338 in commit a167ec4a3, adding target-architecture cross-compilation for snaps built from parts using the Go plugin. | |
| #1015 rust plugin does not cross-compile | craft-parts | 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. | |
| #2264 Fix issue where Rust cross compile target is ignored | snapcraft | merged | Merged PR #2264 as commit 7e2017783, fixing the Rust plugin to honor cross-compilation targets while preserving a project's existing .cargo/config. | |
| #952 rust plugin: add features for conditional compilation | snapcraft | closed | Conditional Rust compilation support was superseded by merged PR #1029, which added tests and landed as commit 5e6d91fa3. | |
| #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. |