chore(jans-cedarling): improve wasm optimization build flags by olehbozhok · Pull Request #14202 · JanssenProject/jans (original) (raw)

@olehbozhok

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 self-assigned this

Jun 3, 2026

@olehbozhok olehbozhok changed the titlefeat(jans-cedarling): improve wasm optimization build flags chore(jans-cedarling): improve wasm optimization build flags

Jun 3, 2026

[coderabbitai[bot]](/apps/coderabbitai)

@olehbozhok

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

[coderabbitai[bot]](/apps/coderabbitai)

haileyesus2433

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 }})