-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cross.toml
15 lines (14 loc) · 886 Bytes
/
Cross.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[build]
default-target = "aarch64-unknown-linux-gnu"
[target.aarch64-unknown-linux-gnu]
pre-build = [
"curl -fsSL \"https://github.com/cargo-prebuilt/index/releases/download/cargo-auditable-$(curl -fsSL https://github.com/cargo-prebuilt/index/releases/download/stable-index/cargo-auditable)/x86_64-unknown-linux-musl.tar.gz\" -o ca-musl.tar.gz",
"tar -xvzf ca-musl.tar.gz -C /bin",
"curl -fsSL \"https://github.com/cargo-prebuilt/index/releases/download/cargo-$(curl -fsSL https://github.com/cargo-prebuilt/index/releases/download/stable-index/cargo)/x86_64-unknown-linux-musl.tar.gz\" -o cargo-musl.tar.gz",
"mkdir -p /rust/bin",
"tar -xvzf cargo-musl.tar.gz -C /rust/bin",
"echo \\#\\!/bin/sh > /bin/cargo",
"echo \"export CARGO='/rust/bin/cargo'\" >> /bin/cargo",
"echo 'cargo-auditable auditable \"$@\"' >> /bin/cargo",
"chmod +x /bin/cargo",
]