1[build.env]
2passthrough = [
3 "CARGO_HOME",
4 "CARGO_TARGET_DIR",
5 "SQLX_OFFLINE",
6 "PKG_CONFIG_ALLOW_CROSS",
7]
8
9[target.aarch64-unknown-linux-gnu]
10image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main"
11
12[target.aarch64-unknown-linux-gnu.env]
13passthrough = ["CARGO_HOME", "CARGO_TARGET_DIR", "SQLX_OFFLINE"]
14# Allow cross-compilation of native dependencies
15PKG_CONFIG_ALLOW_CROSS = "1"
16# Use static linking to reduce runtime dependencies
17RUSTFLAGS = "-C target-feature=+crt-static -C link-arg=-s"
18# Disable problematic features that might require OpenSSL
19CC_aarch64_unknown_linux_gnu = "aarch64-linux-gnu-gcc"
20CXX_aarch64_unknown_linux_gnu = "aarch64-linux-gnu-g++"