chore(jans-cedarling): improve wasm optimization build flags by olehbozhok · Pull Request #14202 · JanssenProject/jans (original) (raw)
Move size-oriented release settings (opt-level = "z", lto = "fat", etc.) from workspace [profile.release] into a per-directory config-based profile under bindings/cedarling_wasm/.cargo/config.toml, so WASM builds stay size-optimized while native builds get speed optimization (opt-level = 3).
Signed-off-by: Oleh Bozhok 6554798+olehbozhok@users.noreply.github.com
olehbozhok changed the title
feat(jans-cedarling): improve wasm optimization build flags chore(jans-cedarling): improve wasm optimization build flags
[](/apps/coderabbitai)
Remove incorrect claim that workspace sets opt-level=3; workspace only sets debug-assertions and overflow-checks. Clarify overlay semantics, that opt-level="z" applies under wasm-pack, and that wasm-pack build --release honors local .cargo/config.toml.
Signed-off-by: Oleh Bozhok 6554798+olehbozhok@users.noreply.github.com
[](/apps/coderabbitai)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})