Skip to content

Latest commit

 

History

History
136 lines (66 loc) · 4.3 KB

README.md

File metadata and controls

136 lines (66 loc) · 4.3 KB

cargo-ndk Docker image

Release CI Docker Hub

Docker Hub | GitHub Container Registry | Quay.io

Changelog

Supported tags and respective Dockerfile links

Supported Rust 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 tags

<X>

Latest tag of the latest major X cargo-ndk version.

<X.Y>

Latest tag of the latest minor X.Y cargo-ndk version.

<X.Y.Z>

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

ndk<rA>

Latest tag containing the concrete rA Android NDK version.

rust<B.C>

Latest tag containing the latest minor B.C Rust version.

<X.Y.Z>-ndk<rA>-rust<B.C>-r<N>

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.

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.