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 51480/week @ 2024-01-20 46837/week @ 2024-01-27 53115/week @ 2024-02-03 50280/week @ 2024-02-10 49460/week @ 2024-02-17 58007/week @ 2024-02-24 57310/week @ 2024-03-02 49904/week @ 2024-03-09 53216/week @ 2024-03-16 60601/week @ 2024-03-23 56497/week @ 2024-03-30 56349/week @ 2024-04-06 63947/week @ 2024-04-13 67123/week @ 2024-04-20 62348/week @ 2024-04-27 63731/week @ 2024-05-04

268,090 downloads per month
Used in 2,549 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