mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-05-10 06:07:56 +00:00
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:
+2
-2
@@ -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"
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user