Closed tomaka closed 5 years ago
I have the same problem on the latest stable rust toolchain (1.34.2). However, the issue does not occur if I use rustup to switch to the beta toolchain (1.36.0-beta.1 (3a5d62bd5 2019-05-22)
) and it also is not an issue on the latest nightly (1.36.0-nightly (37ff5d388 2019-05-22)
), so it seems a fix for this may already be in place, it just hasn't made it's way to the stable release yet.
@tomaka @jrandall are you seeing this problem still? thanks for filing!
This is indeed fixed in the latest version of Rust (stable).
🐛 Bug description
If you add the following section to your
Cargo.toml
:And then you attempt to run
wasm-pack build
, you will get the following compilation error:I reproduced this directly from https://github.com/rustwasm/wasm-pack-template/.
I'm not sure if wasm-pack overrides the panic strategy or something, but whether it is normal or not, the error is quite confusing.
🌍 Your environment
wasm-pack version: 0.8.1 rustc version: 1.34.0