maioaw.blogg.se

Download rust for android
Download rust for android













download rust for android

Soong takes this role instead in Android and calls rustc directly for several reasons: Rust provides Cargo as the default build system and package manager, collecting dependencies and invoking rustc (the Rust compiler) to build the target crate (Rust package). We believe that the success of Rust within Android is dependent on minimizing any divergence between Android and the Rust community at large, and hope that the Rust community will benefit from Android’s involvement. Likewise when crates developed for Android could benefit the wider Rust community, we hope to release them as independent crates. When changes to imported third-party crates might be beneficial to the wider community, our goal is to upstream those changes. This post discusses some of the key design considerations and resulting decisions we made in integrating Rust support into Android’s build system.Ī RustConf 2019 meeting on Rust usage within large organizations highlighted several challenges, such as the risk that eschewing Cargo in favor of using the Rust Compiler, rustc, directly (see next section) may remove organizations from the wider Rust community. Currently this means the Soong build system (where the Rust support resides), but these design decisions and considerations are equally applicable for Bazel when AOSP migrates to that build system.

download rust for android

For Android, one important area was assessing how to best fit Rust into Android’s build system. As with any large project, introducing a new language requires careful consideration. The Android team has been working on introducing the Rust programming language into the Android Open Source Project (AOSP) since 2019 as a memory-safe alternative for platform native code development.















Download rust for android