File tree Expand file tree Collapse file tree 4 files changed +8
-20
lines changed Expand file tree Collapse file tree 4 files changed +8
-20
lines changed Original file line number Diff line number Diff line change 16
16
strategy :
17
17
fail-fast : false
18
18
matrix :
19
- # XXX: We are currently constrained by Winit's MSRV policy + CI system
20
- # See Cargo.toml for details
21
- rust_version : [1.64.0, stable]
19
+ # See top README for MSRV policy
20
+ rust_version : [1.68.0, stable]
22
21
steps :
23
22
- uses : actions/checkout@v3
24
23
35
34
i686-linux-android
36
35
37
36
- name : Install cargo-ndk
38
- # XXX: We have to use an old version of cargo-ndk that supports the
39
- # libgcc linker workaround for rust < 1.68 because Winit's CI system
40
- # currently requires this crate to be buildable with 1.64
41
- run : cargo install cargo-ndk --version "^2"
37
+ run : cargo install cargo-ndk
42
38
43
39
- name : Build game-activity
44
40
working-directory : android-activity
Original file line number Diff line number Diff line change @@ -10,18 +10,12 @@ documentation = "https://docs.rs/android-activity"
10
10
description = " Glue for building Rust applications on Android with NativeActivity or GameActivity"
11
11
license = " MIT OR Apache-2.0"
12
12
13
- # XXX: Even though we have our own MSRV policy that says we only promise to
14
- # support stable releases over the last three months we actually end up
15
- # constrained by the MSRV policy of Winit, which is currently based on
16
- # supporting Alacritty on Debian Sid, and requires a > 10 month old Rust version
13
+ # 1.68 was when Rust last updated the Android NDK version used to build the
14
+ # standard library which avoids needing the -lunwind workaround in build tools.
17
15
#
18
- # This Winit policiy is unfortunately in conflict with what makes sense for
19
- # Android because versions below 1.68 for Android requires awkward toolchain
20
- # linker workarounds, and can't even be compiled with newer versions of
21
- # `cargo ndk` that removed these linker workarounds.
22
- #
23
- # TODO: Open a PR for Winit's CI to test Android builds using a newer toolchain.
24
- rust-version = " 1.64"
16
+ # We depend on cargo-ndk for building which has dropped support for the above
17
+ # linker workaround.
18
+ rust-version = " 1.68.0"
25
19
26
20
[features ]
27
21
# Note: we don't enable any backend by default since features
Original file line number Diff line number Diff line change @@ -909,7 +909,6 @@ extern "Rust" {
909
909
// `app_main` function. This is run on a dedicated thread spawned
910
910
// by android_native_app_glue.
911
911
#[ no_mangle]
912
- #[ allow( unused_unsafe) ] // Otherwise rust 1.64 moans about using unsafe{} in unsafe functions
913
912
pub unsafe extern "C" fn _rust_glue_entry ( native_app : * mut ffi:: android_app ) {
914
913
abort_on_panic ( || {
915
914
// Maybe make this stdout/stderr redirection an optional / opt-in feature?...
Original file line number Diff line number Diff line change @@ -828,7 +828,6 @@ unsafe extern "C" fn on_content_rect_changed(
828
828
829
829
/// This is the native entrypoint for our cdylib library that `ANativeActivity` will look for via `dlsym`
830
830
#[ no_mangle]
831
- #[ allow( unused_unsafe) ] // Otherwise rust 1.64 moans about using unsafe{} in unsafe functions
832
831
extern "C" fn ANativeActivity_onCreate (
833
832
activity : * mut ndk_sys:: ANativeActivity ,
834
833
saved_state : * const libc:: c_void ,
You can’t perform that action at this time.
0 commit comments