From f5c83d50dec7f5c73dc41b317812f94f4fbe28c0 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Tue, 13 Mar 2018 16:16:52 +0300 Subject: [PATCH] Update README.md --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 077f3aa..3f0dfed 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,14 @@ Collection of WASM utilities used in Parity and WASM contract devepment Easiest way to use is to install via `cargo install`: ``` -cargo install --git https://github.com/paritytech/wasm-utils wasm-build +cargo install pwasm-utils wasm-build ``` ## Symbols pruning (wasm-prune) ``` -cargo run --release --bin wasm-prune -- +cargo install pwasm-utils +wasm-prune ``` This will optimize WASM symbols tree to leave only those elements that are used by contract `_call` function entry. @@ -25,7 +26,8 @@ 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 run --release --bin wasm-gas -- +cargo install pwasm-utils +wasm-gas ``` ## Externalization (wasm-ext) @@ -40,7 +42,8 @@ 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 run --release --bin wasm-ext -- +cargo install pwasm-utils +wasm-ext ``` ## API