11 releases (breaking)

0.9.0 Apr 26, 2024
0.8.0 Oct 14, 2023
0.8.0-beta.0 Aug 15, 2023
0.7.0 Jul 24, 2022
0.1.1 Jul 29, 2020

#14 in Unix APIs

Download history 93097/week @ 2024-06-24 80489/week @ 2024-07-01 78075/week @ 2024-07-08 79282/week @ 2024-07-15 85043/week @ 2024-07-22 86972/week @ 2024-07-29 83086/week @ 2024-08-05 87327/week @ 2024-08-12 96176/week @ 2024-08-19 102349/week @ 2024-08-26 94859/week @ 2024-09-02 91254/week @ 2024-09-09 90997/week @ 2024-09-16 100988/week @ 2024-09-23 104412/week @ 2024-09-30 95276/week @ 2024-10-07

397,850 downloads per month
Used in 2,982 crates (27 directly)

MIT/Apache

4MB
110K SLoC

ci MIT license APACHE2 license

Rust bindings to the Android NDK

Name Description Badges
ndk-sys Raw FFI bindings to the NDK crates.io Docs MSRV
ndk Safe abstraction of the bindings crates.io Docs MSRV

See these ndk-examples and these rust-android-examples for examples using the NDK.

[!IMPORTANT] This repository was recently modularized and the following crates were split into separate repositories:

Crate New Location Notes
ndk-context https://github.com/rust-mobile/ndk-context
ndk-glue https://github.com/rust-mobile/ndk-glue deprecated - see android-activity
ndk-macro https://github.com/rust-mobile/ndk-glue deprecated - see android-activity
ndk-build https://github.com/rust-mobile/cargo-apk deprecated - see xbuild
cargo-apk https://github.com/rust-mobile/cargo-apk deprecated - see xbuild

Dependencies

~0.5–11MB
~69K SLoC