IssueRaiser

Roadmap for supporting Rust in apps

Following up on https://github.com/android/ndk/issues/1487, this bug outlines the work we'd need to do to support Rust in apps. **This is not being worked on, nor is it planned. This bug documents the work that needs to be done if that changes.** Use the subscribe button on the right side of the page to be notified of updates. ## Toolchain support We need to get Rust to promote Android to [Tier 1](https://doc.rust-lang.org/nightly/rustc/platform-support.html). Android is currently Tier 2, which means that it is guaranteed to build, but what's built is not guaranteed to work. - [ ] Rust CI for _testing_ android targets. Because all existing Tier 1 targets are able to self-host, Rust's CI likely does not include cross-testing support. We'd either need to enable self-hosting for rustc/cargo/etc on Android, or would need to build that cross-testing support. The former might be easier but the latter more accurately reflects the developer workflow. - [ ] Provide test devices or adequate emulators - [ ] Fix tests that have already regressed - [ ] Commit to maintaining Android support upstream - [ ] Distribute a prebuilt toolchain as a package in the Android SDK (this would not be the only nor even the recommended way to use rust, tier 1 support means you can just go use rustup, but we need SDK packages for AGP/AS integration) ## Android APIs We need to support the maintenance of the [ndk-sys crate](https://crates.io/crates/ndk-sys). This is the Rust equivalent of the NDK's sys

Posted by DanAlbert on Aug 1, 2022, 8:06 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments

support (Software)

Roadmap for supporting Rust in apps

DanAlbertAug 1, 2022, 8:06 PM

Following up on https://github.com/android/ndk/issues/1487, this bug outlines the work we'd need to do to support Rust in apps. **This is not being worked on, nor is it planned. This bug documents the work that needs to be done if that changes.** Use the subscribe button on the right side of the page to be notified of updates. ## Toolchain support We need to get Rust to promote Android to [Tier 1](https://doc.rust-lang.org/nightly/rustc/platform-support.html). Android is currently Tier 2, which means that it is guaranteed to build, but what's built is not guaranteed to work. - [ ] Rust CI for _testing_ android targets. Because all existing Tier 1 targets are able to self-host, Rust's CI likely does not include cross-testing support. We'd either need to enable self-hosting for rustc/cargo/etc on Android, or would need to build that cross-testing support. The former might be easier but the latter more accurately reflects the developer workflow. - [ ] Provide test devices or adequate emulators - [ ] Fix tests that have already regressed - [ ] Commit to maintaining Android support upstream - [ ] Distribute a prebuilt toolchain as a package in the Android SDK (this would not be the only nor even the recommended way to use rust, tier 1 support means you can just go use rustup, but we need SDK packages for AGP/AS integration) ## Android APIs We need to support the maintenance of the [ndk-sys crate](https://crates.io/crates/ndk-sys). This is the Rust equivalent of the NDK's sys

Comments (0)

No comments yet. Start the discussion.

Comment on this issue