Docker Hub | GitHub Container Registry | Quay.io
Supported Rust targets
aarch64-linux-android
armv7-linux-androideabi
x86_64-linux-android
i686-linux-android
This Cargo extension handles all the environment configuration needed for successfully building libraries for Android from a Rust codebase, with support for generating the correct jniLibs/
directory structure.
This image also contains Android NDK and Rust targets for building source code for Android.
Mount your project directory and run the cargo ndk
command:
docker run --rm -v /my/rust/project:/app -w /app instrumentisto/cargo-ndk \
cargo ndk -o ./jniLibs build
After doing that you will see jniLibs/
folder with libraries for all the supported Android targets.
Latest tag of the latest major X
cargo-ndk version.
Latest tag of the latest minor X.Y
cargo-ndk version.
Latest tag of the concrete X.Y
cargo-ndk version.
Latest tag containing the concrete rA
Android NDK version.
Latest tag containing the latest minor B.C
Rust version.
Concrete N
image revision tag of the concrete X.Y.Z
cargo-ndk version with the concrete rA
Android NDK version and the latest minor B.C
Rust version.
Once built, it's never updated.
cargo-ndk is licensed under Apache-2.0/MIT licenses.
Android NDK is licensed under its own license.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
The sources for producing instrumentisto/cargo-ndk
Docker image are licensed under Blue Oak Model License 1.0.0.
We can't notice comments in the DockerHub (or other container registries) so don't use them for reporting issue or asking question.
If you have any problems with or questions about this image, please contact us through a GitHub issue.