watt icon indicating copy to clipboard operation
watt copied to clipboard

Panic info is compiled in

Open est31 opened this issue 6 years ago • 0 comments
trafficstars

It seems that panic information is still compiled into the wasm file.

The crate file can be downloaded from this link. It contains the wasm file (2.7 MB uncompressed). If you run strings on the wasm file, you see some paths included. This is caused by panic information still being compiled in. Mostly, for proc macros such info is irrelevant. With a custom panic handler, the linker should be able to optimize it out.

Although I'm not sure, it might even be wanted: https://github.com/dtolnay/watt/blob/335dd49b107848d24469079c5fd85efa74fa10f1/src/lib.rs#L65

est31 avatar Oct 14 '19 17:10 est31