Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Announce an impending update the Android NDK target #1055

Merged
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions posts/2023-01-09-android-ndk-update-r25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
layout: post
title: "Updating the Android NDK in Rust <version>"
Mark-Simulacrum marked this conversation as resolved.
Show resolved Hide resolved
author: Android Platform Team
description: "Modernizing Android support in Rust"
---

We are pleased to announce that Android platform support in Rust will be
modernized in Rust 1.68 as we update the target NDK from r17 to r25. As a
consequence the minimum supported API level will increase from 15 (Ice Cream
Sandwich) to 19 (KitKat).

In NDK r23 Android switched to using LLVM's `libunwind` for all architectures.
This meant that
1. If a project were to target NDK r23 or newer with previous versions of Rust
[a workaround](https://github.com/rust-lang/rust/pull/85806#issuecomment-1096266946)
would be required to redirect attempts to link against `libgcc` to instead
link against `libunwind`. Following this update this workaround will no
longer be necessary.
2. If a project uses NDK r22 or older it will need to be updated to use [r23 or
newer](https://developer.android.com/ndk/downloads). Information about the
layout of the NDK's toolchain can be found
[here](https://developer.android.com/ndk/guides/other_build_systems).

Going forward the Android platform will target the most recent LTS NDK, allowing
Rust developers to access platform features sooner. These updates should occur
yearly and will be announced in release notes.