Skip to content

Commit

Permalink
Announce an impending update the Android NDK target
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswailes committed Dec 14, 2022
1 parent 60bfdfa commit 96cead8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions posts/2022-12-14-android-ndk-update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
layout: post
title: "Updating the Android NDK in Rust <version>"
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 <version> as we update the target NDK from r17 to r25. As a
consequence the minimum supported API level will increase from 15 (Jelly Bean)
to 19 (KitKat).

In NDK r23 Android switched to using LLVMs `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 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 targets an NDK between r17 and r23 it will need to be updated to
target r23 or newer.

Going forward the Android platform will target the most recent LTS NDK, allowing
Rust developers to access platform features sooner.

0 comments on commit 96cead8

Please sign in to comment.