this post was submitted on 04 Jul 2026
18 points (100.0% liked)

Rust Programming

9317 readers
24 users here now

founded 7 years ago
MODERATORS
 

Which rust ui framework works the best on android? The only one I've seen being used is tauri, but its web based.

you are viewing a single comment's thread
view the rest of the comments
[–] orclev@lemmy.world 5 points 16 hours ago

I've not heard anything about the NDK being deprecated and nothing on the website seems to indicate it is so in theory as long as your Rust code exports C FFI bindings you could call it using JNI. You'd need at least a minimal Java/Kotlin wrapper and most of your UI would probably end up being done on the Java side of things, although in theory that isn't strictly necessary. There's a cargo plugin (cargo-ndk) that automates a lot of this process.

As one example the Bevy game engine supports iOS and Android targets and doesn't use any native UI elements instead using a GPU canvas (I'm unsure if the implementation is Vulkan, OpenGL, or something else like Metal on iOS) and hooking the native touch controls.