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

#13 in Unix APIs

Download history 104412/week @ 2024-09-30 100890/week @ 2024-10-07 103123/week @ 2024-10-14 108079/week @ 2024-10-21 109778/week @ 2024-10-28 116701/week @ 2024-11-04 100338/week @ 2024-11-11 103941/week @ 2024-11-18 102446/week @ 2024-11-25 113196/week @ 2024-12-02 106329/week @ 2024-12-09 100081/week @ 2024-12-16 73063/week @ 2024-12-23 76535/week @ 2024-12-30 105331/week @ 2025-01-06 98226/week @ 2025-01-13

360,068 downloads per month
Used in 3,282 crates (31 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–12MB
~68K SLoC