Use to the new panic-immediate-abort cargo feature

This commit is contained in:
FooIbar committed 2025-10-05 19:38:52 +08:00
1 parent 55d1094e55
commit cf10e2ff6d
3 files changed
+4 -3

No files matched your search

-1
View File
@@ -145,7 +145,6 @@ corrosion_import_crate(
FEATURES $<IF:$<VERSION_GREATER_EQUAL:${ANDROID_NATIVE_API_LEVEL},26>,android-26,android>
FLAGS $<$<NOT:$<CONFIG:Debug>>:-Z build-std=std,panic_abort -Z build-std-features=>
)
corrosion_add_target_rustflags(ehviewer_rust $<$<NOT:$<CONFIG:Debug>>:-Z unstable-options -C panic=immediate-abort>)
corrosion_link_libraries(ehviewer_rust android jnigraphics log webp webpdemux)
# Build and link our app's native lib
+3 -1
View File
@@ -1,3 +1,5 @@
cargo-features = ["panic-immediate-abort"]
[package]
name = "ehviewer_rust"
version = "0.0.0"
@@ -34,7 +36,7 @@ reqwest = "0.12"
tokio = { version = "1", features = ["macros"] }
[profile.release]
panic = "abort"
panic = "immediate-abort"
strip = true
lto = true
codegen-units = 1
+1 -1
View File
@@ -1,5 +1,5 @@
[toolchain]
channel = "nightly-2025-10-03"
channel = "nightly-2025-10-05"
components = ["rustfmt", "clippy", "rust-src"]
targets = ["aarch64-linux-android", "x86_64-linux-android"]
profile = "minimal"