Docker Hub | GitHub Container Registry | Quay.io
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 X
cargo-ndk's major version.
Latest tag of X.Y
cargo-ndk's minor version.
Latest tag of a concrete X.Y
version of cargo-ndk.
Latest tag containing a pinned concrete rA
version of Android NDK.
Latest tag containing a pinned M.N
minor version of Rust.
Concrete N
image revision tag of a cargo-ndk's concrete X.Y.Z
version with pinned rA
version of Android NDK and pinned M.N
version of Rust.
Once build, 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.