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

#22 in Unix APIs

Download history 112465/week @ 2025-01-28 117661/week @ 2025-02-04 294321/week @ 2025-02-11 302319/week @ 2025-02-18 334939/week @ 2025-02-25 343050/week @ 2025-03-04 337675/week @ 2025-03-11 288445/week @ 2025-03-18 278066/week @ 2025-03-25 246167/week @ 2025-04-01 237052/week @ 2025-04-08 187819/week @ 2025-04-15 211976/week @ 2025-04-22 217207/week @ 2025-04-29 213894/week @ 2025-05-06 171658/week @ 2025-05-13

841,249 downloads per month
Used in 3,619 crates (35 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