Merge pull request #16 from paritytech/wasm-prune

Rename wasm-opt to wasm-prune to avoid binary name collision with binaryen
This commit is contained in:
Nikolay Volf
2017-09-15 22:31:20 +03:00
committed by GitHub
5 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ glob = "0.2"
[lib]
[[bin]]
name = "wasm-opt"
path = "opt/src/main.rs"
name = "wasm-prune"
path = "prune/src/main.rs"
[[bin]]
name = "wasm-ext"
+2 -2
View File
@@ -10,10 +10,10 @@ Easiest way to use is to install via `cargo install`:
cargo install --git https://github.com/paritytech/wasm-utils wasm-build
```
## Symbols optimizer (wasm-opt)
## Symbols pruning (wasm-prune)
```
cargo run --release --bin wasm-opt -- <input_binary.wasm> <output_binary.wasm>
cargo run --release --bin wasm-prune -- <input_binary.wasm> <output_binary.wasm>
```
This will optimize WASM symbols tree to leave only those elements that are used by contract `_call` function entry.
View File
View File