From 953058586b335265f2a4cbb2abfa3c5de37a6a0b Mon Sep 17 00:00:00 2001 From: Chris Wailes Date: Wed, 14 Dec 2022 10:34:32 -0800 Subject: [PATCH 1/3] Announce an impending update the Android NDK target --- posts/2023-01-09-android-ndk-update-r25.md | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 posts/2023-01-09-android-ndk-update-r25.md diff --git a/posts/2023-01-09-android-ndk-update-r25.md b/posts/2023-01-09-android-ndk-update-r25.md new file mode 100644 index 000000000..59a8f172b --- /dev/null +++ b/posts/2023-01-09-android-ndk-update-r25.md @@ -0,0 +1,28 @@ +--- +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 1.66 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. + From ea18aa3d061ebb7e334f6910638e090b83823072 Mon Sep 17 00:00:00 2001 From: Chris Wailes Date: Tue, 3 Jan 2023 13:05:04 -0800 Subject: [PATCH 2/3] Update posts/2023-01-09-android-ndk-update-r25.md Co-authored-by: Mark Rousskov --- posts/2023-01-09-android-ndk-update-r25.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts/2023-01-09-android-ndk-update-r25.md b/posts/2023-01-09-android-ndk-update-r25.md index 59a8f172b..c9dc6a23e 100644 --- a/posts/2023-01-09-android-ndk-update-r25.md +++ b/posts/2023-01-09-android-ndk-update-r25.md @@ -6,7 +6,7 @@ description: "Modernizing Android support in Rust" --- We are pleased to announce that Android platform support in Rust will be -modernized in Rust 1.66 as we update the target NDK from r17 to r25. As a +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). From 8bb5fde735c0debef9f9a70cbf5ae04032f616a5 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Mon, 9 Jan 2023 10:36:15 -0500 Subject: [PATCH 3/3] Update title with version number --- posts/2023-01-09-android-ndk-update-r25.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts/2023-01-09-android-ndk-update-r25.md b/posts/2023-01-09-android-ndk-update-r25.md index c9dc6a23e..1bc4976db 100644 --- a/posts/2023-01-09-android-ndk-update-r25.md +++ b/posts/2023-01-09-android-ndk-update-r25.md @@ -1,6 +1,6 @@ --- layout: post -title: "Updating the Android NDK in Rust " +title: "Updating the Android NDK in Rust 1.68" author: Android Platform Team description: "Modernizing Android support in Rust" ---