Hi.

Rust can run on anything from web browsers to Adruinos. BUT can you make Android/iOS apps with it? I heard that you can make the backend of your app in Rust and then incorporate it into your Java/Kotlin app, but I’m looking for something like React Native or Flutter, where you can build the entire app (including UI and interacting with native APIs) in Rust without writing a single line of Java/Kotlin.

Does something like that exist? If not, then is anyone working on it?

Oh, and I don’t mean I want one of the many libraries which just compile your code to WASM and run the app in a WebView… I want something that lets me make native UIs - like React Native or Flutter.

Thanks

@Solemarc@lemmy.world
link
fedilink
8
edit-2
6M

What about Slint? Seems to be early days for mobile dev with it though but I don’t know any other native rust based UI libraries.

Rustmilian
link
fedilink
46M

No full Rust toolkit exists yet, best you got is Kotlin-Rust & Flutterust.

Kotlin-rust hasnt had updates in 7 years, Flutterrust in 2 years

Rustmilian
link
fedilink
3
edit-2
6M

For Flutter there’s also flutter_rust_bridge. But for Kotlin it’s pretty much the best you have without having to write your own bindings from scratch, alternatively there’s uniffi-rs but it can be tricky to get working with kotlin.

Iced maybe? Not sure about mobile. Second Slint, it adapts the native style of various OSses

Rustmilian
link
fedilink
5
edit-2
6M

Iced is desktop and web only.
Slint for mobile is WIP for Android and not started for IOS.

Maybe Tauri?

It uses web-view. Not what OP is looking for.

Rust Programming
!rust@lemmy.ml
    • 0 users online
    • 2 users / day
    • 2 users / week
    • 2 users / month
    • 74 users / 6 months
    • 1 subscriber
    • 258 Posts
    • 707 Comments
    • Modlog