Update README.md

This commit is contained in:
Nikolay Volf
2018-05-16 17:39:34 +04:00
committed by GitHub
parent 7f8811cb2c
commit 947f0b8bbb
+4 -4
View File
@@ -9,13 +9,13 @@ Collection of WASM utilities used in Parity and WASM contract devepment
Easiest way to use is to install via `cargo install`:
```
cargo install pwasm-utils --bin wasm-build
cargo install pwasm-utils-cli --bin wasm-build
```
## Symbols pruning (wasm-prune)
```
cargo install pwasm-utils
cargo install pwasm-utils-cli --bin wasm-prune
wasm-prune <input_wasm_binary.wasm> <output_wasm_binary.wasm>
```
@@ -26,7 +26,7 @@ This will optimize WASM symbols tree to leave only those elements that are used
For development puposes, raw WASM contract can be injected with gas counters (the same way as it done by Parity runtime when running contracts)
```
cargo install pwasm-utils
cargo install pwasm-utils-cli --bin wasm-gas
wasm-gas <input_wasm_binary.wasm> <output_wasm_binary.wasm>
```
@@ -42,7 +42,7 @@ Parity WASM runtime provides some library functions that can be commonly found i
And then substitutes them with invocations of the imported ones. Should be run before `wasm-opt` for better results.
```
cargo install pwasm-utils
cargo install pwasm-utils-cli --bin wasm-ext
wasm-ext <input_wasm_binary.wasm> <output_wasm_binary.wasm>
```