File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ Rebuilding the wasm can be done with the commands:
32
32
cd wasm
33
33
cargo build --release --target wasm32-unknown-unknown
34
34
# If wasm-opt is unavailable, copying the file is fine.
35
- wasm-opt --strip-debug -Oz target/wasm32-unknown-unknown/release/momo.wasm -o ../src/momo.wasm
35
+ wasm-opt target/wasm32-unknown-unknown/release/momo_watt.wasm -Oz \
36
+ --strip-debug --simplify-globals --vacuum -o ../src/momo.wasm
36
37
```
37
38
38
39
You might need to add the ` wasm32-unknown-unknown ` target to your
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ version = "0.2.2"
12
12
13
13
[profile .release ]
14
14
opt-level = " z"
15
- codegen_units = 1
15
+ codegen-units = 1
16
16
lto = true
17
17
18
18
[lib ]
@@ -24,4 +24,4 @@ proc-macro2 = { git = "https://github.com/dtolnay/watt" }
24
24
[dependencies ]
25
25
syn = { version = " 1.0" , features = [" full" , " fold" ] }
26
26
quote = " 1.0"
27
- proc-macro2 = " = 1.0.27 " # Temporary hack as watt is left at .27
27
+ proc-macro2 = " 1.0"
You can’t perform that action at this time.
0 commit comments