mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-13 05:51:07 +00:00
Update README.md
This commit is contained in:
@@ -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>
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user