This repo contains a collection of docker containers intended for compiling Rust code for various platforms. Each container contains what should be the bare minimum for compiling Rust code on the target platform, including:
The tests for this repository run a smoke "build a cargo project" for each platform, so at least "Hello, World!" should be guaranteed to work!
First, figure out the target you'd like. Let's say that's
arm-linux-androideabi
. Next, build the docker container like so:
docker build -f arm-linux-androideabi/Dockerfile .
And then you're ready to go!
Most of the platforms here are currently untested, which means that your mileage may vary when using them. Some concerns to keep in mind when cross compiling are:
If those are all taken care of, however, then the cross compilation experience should be relatively smooth!
These docker images are primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.
See LICENSE-APACHE, and LICENSE-MIT for details.