rust plugin does not cross-compile
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
### Bug Description
The `rust` plugin does correctly handle cross-compiling, instead still building for the host architectures.
### To Reproduce
1. Use the `rust` plugin with a different target architecture from the host architecture
2. Examine the output `elf` file(s)
### part yaml
```shell
parts:
uv:
plugin: rust
source: https://github.com/astral-sh/uv.git
source-tag: $SNAPCRAFT_PROJECT_VERSION
build-packages:
- cmake
build-attributes:
- enable-patchelf
organize:
uv: bin/uv
uvx: bin/uvx
lib*.so: lib/
```
### Relevant log output
```shell
$ unsquashfs astral-uv_0.5.29_armhf.snap
Parallel unsquashfs: Using 16 processors
5 inodes (321 blocks) to write
[==========================================================================================================|] 326/326 100%
created 5 files
created 4 directories
created 0 symlinks
created 0 devices
created 0 fifos
created 0 sockets
created 0 hardlinks
lengau@ratel:~/Projects/uv-snap$ file squashfs-root/bin/uv
squashfs-root/bin/uv: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /snap/core24/current/lib64/ld-linux-x86-64.so.2, BuildID[sha1]=5ea30677c06472fa51db130472ba4f97b74a1786, for GNU/Linux 3.2.0, stripped
```
Evaluation history
No evaluation history available.