Docker container with Rust and Debian cross-build utilities.
4.6K
Docker container with Rust and Debian cross-build utilities.
Linux targets:
aarch64-unknown-linux-musli586-unknown-linux-musli686-unknown-linux-muslpowerpc64le-unknown-linux-muslriscv64gc-unknown-linux-muslx86_64-unknown-linux-muslFreeBSD targets:
x86_64-unknown-freebsdNetBSD targets:
x86_64-unknown-netbsdThe cargo-xbuild helper script is provided to make cross-building slightly easier 😅
Just run the following command from your Rust project directory:
cargo xbuild --release
Note: This script is supposed to be executed from within the provided Docker container!
By default, the script will build all supported targets.
The environment variable RUST_XBUILD_TARGET can be used to specify the target(s) to build.
To build your project with cargo-xbuild directly from the host, invoke Docker like this:
docker run --rm -v /path/to/source:/workspace -w /workspace \
lordmulder/rust-xbuild cargo xbuild --release
Please see do-xbuild.sh in the "example" directory for details!
https://github.com/lordmulder/rust-xbuild/blob/master/Dockerfile
Content type
Image
Digest
sha256:7f884567d…
Size
1.7 GB
Last updated
9 days ago
docker pull lordmulder/rust-xbuild