From 88d8106b729e8d2cfd7d6d1a52113d810a599e72 Mon Sep 17 00:00:00 2001 From: Chris Wailes Date: Wed, 14 Dec 2022 10:34:32 -0800 Subject: [PATCH] Announce an impending update the Android NDK target --- posts/2022-12-14-android-ndk-update.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 posts/2022-12-14-android-ndk-update.md diff --git a/posts/2022-12-14-android-ndk-update.md b/posts/2022-12-14-android-ndk-update.md new file mode 100644 index 000000000..88bd22a70 --- /dev/null +++ b/posts/2022-12-14-android-ndk-update.md @@ -0,0 +1,24 @@ +--- +layout: post +title: "Updating the Android NDK in Rust " +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 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 featuers sooner. +