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

#16 in Unix APIs

Download history 47748/week @ 2024-01-26 50614/week @ 2024-02-02 52928/week @ 2024-02-09 48765/week @ 2024-02-16 56204/week @ 2024-02-23 58399/week @ 2024-03-01 50586/week @ 2024-03-08 52375/week @ 2024-03-15 58116/week @ 2024-03-22 58523/week @ 2024-03-29 55583/week @ 2024-04-05 63604/week @ 2024-04-12 65504/week @ 2024-04-19 62831/week @ 2024-04-26 62051/week @ 2024-05-03 56630/week @ 2024-05-10

257,307 downloads per month
Used in 2,582 crates (24 directly)

MIT/Apache

4MB
111K 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.6–12MB
~86K SLoC