Is there a way to do Rust programming for Android without Android ndk?

By the way in regards to Android development, are there any Rust project/crates that are being worked on by any chance planning to implement a native way to do Android programming without depending on the Android ndk?

First question: Why ?
And I don't think so. Even searching for "C++ without Android NDK" returns no results.

I see, thanks

Android NDK is a native way to do Android programming without depending on the JVM. I think it's possible in theory to compile Rust code to the JVM target thanks to the LLVM, but is that really what you want?

I see, I suppose I will go through the ndk way then.

I guess if can find a Java WASM interpreter, then you could compile Rust to WASM and interpret it instead of running native code.

On the upside, it'd be portable to all Android CPU architectures, OTOH it'd be 100 times slower, and wouldn't support any native code or Android APIs.

2 Likes