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

#11 in Unix APIs

Download history 105345/week @ 2024-10-16 108841/week @ 2024-10-23 110806/week @ 2024-10-30 109969/week @ 2024-11-06 102611/week @ 2024-11-13 103386/week @ 2024-11-20 107332/week @ 2024-11-27 108276/week @ 2024-12-04 107909/week @ 2024-12-11 84761/week @ 2024-12-18 80174/week @ 2024-12-25 80446/week @ 2025-01-01 105729/week @ 2025-01-08 105673/week @ 2025-01-15 112016/week @ 2025-01-22 93479/week @ 2025-01-29

432,546 downloads per month
Used in 3,347 crates (32 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
~69K SLoC