rustwasm / book

The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.75k stars 211 forks source link

explicitly mention compile-time options of logging crates for code-size reduction #302

Open hmeine opened 1 year ago

hmeine commented 1 year ago

I found it possible to shave more than 1% off my already optimized .wasm size by using the release_max_level_off feature on the tracing crate. Hence, I suggest to extend the section that already mentions string formatting as a potential vector for code size reduction to point to these features, since tracing and log are commonly used (also indirectly in dependencies – bevy in my case).