Skip to content

instrumentisto/cargo-ndk-docker-image

Folders and files

NameName
Last commit message
Last commit date
Apr 15, 2021
Apr 14, 2021
Apr 5, 2021
Apr 5, 2021
Apr 5, 2021
Jan 21, 2022
Jan 21, 2022
Apr 5, 2021
Apr 6, 2021
Jan 21, 2022
Apr 5, 2021

Repository files navigation

cargo-ndk Docker image

Release CI Docker Hub

Docker Hub | GitHub Container Registry | Quay.io

Changelog

Supported tags and respective Dockerfile links

Supported targets

  • aarch64-linux-android
  • armv7-linux-androideabi
  • x86_64-linux-android
  • i686-linux-android

What is cargo-ndk?

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.

https://crates.io/crates/cargo-ndk

https://developer.android.com/ndk

How to use this Docker image

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.

Image versions

X

Latest tag of X cargo-ndk's major version.

X.Y

Latest tag of X.Y cargo-ndk's minor version.

X.Y.Z

Latest tag of a concrete X.Y version of cargo-ndk.

ndkrA

Latest tag containing a pinned concrete rA version of Android NDK.

rustM.N

Latest tag containing a pinned M.N minor version of Rust.

X.Y.Z-ndkrA-rustM.N-rN

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.

License

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.

Issues

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.