How to set wasm-opt level to -O4 ? #949
-
Hello, I'm building a wasm application. I noticed that wasm-opt is by default on level
in workspace Here is my output:
I |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You can set the Here is the modified rust asset from the <link data-trunk rel="rust" href="Cargo.toml" data-wasm-opt="4" data-bin="yew-example" data-cargo-features="demo-abc,demo-xyz"/> |
Beta Was this translation helpful? Give feedback.
You can set the
wasm-opt
level in the rust asset element. This is done by setting thedata-wasm-opt
to "4".You can check out the docs for other accepted values: https://trunkrs.dev/assets/#rust
Here is the modified rust asset from the
yew
example that sets the wasm-opt level to 4.