Closed cedeber closed 9 months ago
Personally, I think the default release profile is probably the best starting point, rather than baking any of those preferences into the template.
Why just doing it for wasm then ?
Binary size is an extremely important performance issue for WebAssembly because it has to be shipped over the network to your users.
profile.wasm-release
inherits fromrelease
butprofile.release
is not set.Wouldn't be
Cargo.toml
look like this instead?It allows to have
start-axum
from 9MB to 4.1MB on my M1.strip=true
will be also very useful for linux users as the debug symbols are embedded in the binary, unlike on Windows or Mac. And it's also MB of data.