Skip to content

Commit c0a9e20

Browse files
authored
Merge pull request #103 from rust-mobile/rib/pr/msrv-1.68
Bump MSRV to 1.68
2 parents ed2dc53 + 66cfc68 commit c0a9e20

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

.github/workflows/ci.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
# See top README for MSRV policy
20-
rust_version: [1.64.0, stable]
20+
rust_version: [1.68.0, stable]
2121
steps:
2222
- uses: actions/checkout@v3
2323

@@ -34,9 +34,7 @@ jobs:
3434
i686-linux-android
3535
3636
- name: Install cargo-ndk
37-
# We're currently sticking with cargo-ndk 2, until we bump our
38-
# MSRV to 1.68+
39-
run: cargo install cargo-ndk --version "^2"
37+
run: cargo install cargo-ndk
4038

4139
- name: Setup Java
4240
uses: actions/setup-java@v3

android-activity/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/rust-mobile/android-activity"
99
documentation = "https://docs.rs/android-activity"
1010
description = "Glue for building Rust applications on Android with NativeActivity or GameActivity"
1111
license = "MIT OR Apache-2.0"
12-
rust-version = "1.64"
12+
rust-version = "1.68.0"
1313

1414
[features]
1515
# Note: we don't enable any backend by default since features

android-activity/src/game_activity/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,6 @@ extern "Rust" {
759759
// `app_main` function. This is run on a dedicated thread spawned
760760
// by android_native_app_glue.
761761
#[no_mangle]
762-
#[allow(unused_unsafe)] // Otherwise rust 1.64 moans about using unsafe{} in unsafe functions
763762
pub unsafe extern "C" fn _rust_glue_entry(native_app: *mut ffi::android_app) {
764763
abort_on_panic(|| {
765764
// Maybe make this stdout/stderr redirection an optional / opt-in feature?...

android-activity/src/native_activity/glue.rs

-1
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,6 @@ unsafe extern "C" fn on_content_rect_changed(
828828

829829
/// This is the native entrypoint for our cdylib library that `ANativeActivity` will look for via `dlsym`
830830
#[no_mangle]
831-
#[allow(unused_unsafe)] // Otherwise rust 1.64 moans about using unsafe{} in unsafe functions
832831
extern "C" fn ANativeActivity_onCreate(
833832
activity: *mut ndk_sys::ANativeActivity,
834833
saved_state: *const libc::c_void,

0 commit comments

Comments
 (0)