Add Cross.toml pinning ARM targets to :main edge images

The default cross 0.2.5 images for arm-*/armv7-* have an old glibc
that fails when build scripts (e.g. generic-array) use modern rustc.
Using :main edge images resolves this.

Verified locally: all four ARM targets build clean (armv7 + arm,
gnu + musl). Binaries are ~2.5 MB each.
This commit is contained in:
NK
2026-04-09 00:32:52 +02:00
parent 51c29e1b74
commit 518483930f
+14
View File
@@ -0,0 +1,14 @@
# Use edge images for ARM targets — the pinned 0.2.5 images have old glibc
# that fails when build scripts use modern rustc.
[target.armv7-unknown-linux-gnueabihf]
image = "ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf:main"
[target.armv7-unknown-linux-musleabihf]
image = "ghcr.io/cross-rs/armv7-unknown-linux-musleabihf:main"
[target.arm-unknown-linux-gnueabihf]
image = "ghcr.io/cross-rs/arm-unknown-linux-gnueabihf:main"
[target.arm-unknown-linux-musleabihf]
image = "ghcr.io/cross-rs/arm-unknown-linux-musleabihf:main"