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

#130 in Unix APIs

Download history 127738/week @ 2024-11-16 116652/week @ 2024-11-23 137200/week @ 2024-11-30 125527/week @ 2024-12-07 129638/week @ 2024-12-14 73629/week @ 2024-12-21 103570/week @ 2024-12-28 123051/week @ 2025-01-04 132886/week @ 2025-01-11 126352/week @ 2025-01-18 131988/week @ 2025-01-25 136953/week @ 2025-02-01 303042/week @ 2025-02-08 297718/week @ 2025-02-15 355282/week @ 2025-02-22 399031/week @ 2025-03-01

1,379,234 downloads per month
Used in 3,715 crates (24 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