10 releases (5 breaking)

0.6.0+11769913 Apr 26, 2024
0.5.0+25.2.9519653 Oct 14, 2023
0.5.0-beta.0+25.2.9519653 Aug 15, 2023
0.4.1+23.1.7779620 Nov 23, 2022
0.1.1 Jul 29, 2020

#212 in Unix APIs

Download history 350121/week @ 2025-09-01 361407/week @ 2025-09-08 359091/week @ 2025-09-15 338356/week @ 2025-09-22 361918/week @ 2025-09-29 388236/week @ 2025-10-06 352680/week @ 2025-10-13 338912/week @ 2025-10-20 356354/week @ 2025-10-27 337918/week @ 2025-11-03 311356/week @ 2025-11-10 388649/week @ 2025-11-17 330874/week @ 2025-11-24 380487/week @ 2025-12-01 384918/week @ 2025-12-08 60889/week @ 2025-12-15

1,198,192 downloads per month
Used in 5,010 crates (32 directly)

MIT/Apache

3.5MB
105K 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