In Android 12 we announced support for the Rust programming language in the Android platform as a memory-safe alternative to C/C++ … In Android 13, about 21% of all new native code (C/C++/Rust) is in Rust. There are approximately 1.5 million total lines of Rust code in AOSP …

  • @ComplexLotus@lemmy.world
    link
    fedilink
    110 months ago

    Can one write an android app in pure rust today? As far as I understand Java/Kotlin is still preferred there… and rust and c are only used for the operating system itself.

    I wonder if the support for the arm-architecture target will improve because of this, since android devices run on that architecture. In tier 1 there is aarch64-unknown-linux-gnu ARM64 Linux … so does that mean arm support is already perfect?

    • Lixou
      link
      fedilink
      110 months ago

      @ComplexLotus @vit really good question. I thought that all apps are running in their own jvm so If that is correct and a must, I am not sure how this would work with something like rust. If you know how to do it, please let me know it. :)