Does the core crate not support panic="abort" any more? [wasm32-unknown-emscripten]
⚓ Rust 📅 2025-10-29 👤 surdeus 👁️ 2I'm trying to shrink my WASM output, and wanted to try panic="abort", but I'm getting an error saying that the core crate requires the unwind panic strategy.
Rust version: 1.90.0
Target: wasm32-unknown-emscripten
Cargo invocation:
RUSTFLAGS=-Csymbol-mangling-version=v0 cargo build --release --target=wasm32-unknown-emscripten
Compiler output:
Compiling remglk v0.1.0 (/src/remglk/remglk)
Compiling remglk_capi v0.1.0 (/src/remglk/remglk_capi)
error: the crate `core` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`
error: could not compile `remglk_capi` (lib) due to 1 previous error
Cargo.toml contents for each package (click for more details)
In my searches I haven't seen anyone have panic strategy troubles for the core crate before, which I take either means that I'm doing something very weird with my setup, or that wasm32-unknown-emscripten is not used much any more.
I know that I was able to build with panic="abort" back with Rust 1.76.0 because I then had linking errors with the rest of my Emscripten app, but my Rust library compiled fine back then.
Any suggestions on how to diagnose what's going wrong here?
3 posts - 2 participants
🏷️ Rust_feed