dtolnay / dtolnay/watt

Panic info is compiled in

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.5k
Forks
31
PR merge metrics
No merged PRs in 30d

Description

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

The crate file can be downloaded from this [link](https://d19xqa3lc3clo8.cloudfront.net/crates/wa-serde-derive/wa-serde-derive-0.1.101.crate). 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.