#wasm #webassembly #pwasm


Collection of command-line utilities and corresponding Rust api for producing pwasm-compatible executables

23 releases (11 breaking)

0.12.0 Nov 1, 2019
0.10.0 Aug 29, 2019
0.8.1 Jul 17, 2019
0.6.2 Jan 15, 2019
0.1.4 Mar 27, 2018

#7 in Cryptocurrencies

Download history 1694/week @ 2020-02-09 1832/week @ 2020-02-16 2277/week @ 2020-02-23 2206/week @ 2020-03-01 2229/week @ 2020-03-08 2066/week @ 2020-03-15 2378/week @ 2020-03-22 3890/week @ 2020-03-29 3884/week @ 2020-04-05 4645/week @ 2020-04-12 5804/week @ 2020-04-19 4944/week @ 2020-04-26 5129/week @ 2020-05-03 6603/week @ 2020-05-10 4917/week @ 2020-05-17 3884/week @ 2020-05-24

10,343 downloads per month
Used in 11 crates (6 directly)


4.5K SLoC


Build Status

Collection of WASM utilities used in pwasm-ethereum and substrate contract development

Build tools for cargo

Easiest way to use is to install via cargo install:

cargo install pwasm-utils-cli --bin wasm-build

Symbols pruning (wasm-prune)

cargo install pwasm-utils-cli --bin wasm-prune
wasm-prune <input_wasm_binary.wasm> <output_wasm_binary.wasm>

This will optimize WASM symbols tree to leave only those elements that are used by contract call function entry.

Gas counter (wasm-gas)

For development puposes, raw WASM contract can be injected with gas counters (the same way as it done by pwasm-ethereum/substrate runtime when running contracts)

cargo install pwasm-utils-cli --bin wasm-gas
wasm-gas <input_wasm_binary.wasm> <output_wasm_binary.wasm>


All executables use corresponding api methods of the root crate and can be combined in other build tools.


wasm-utils is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), at your choice.

See LICENSE-APACHE, and LICENSE-MIT for details.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in wasm-utils by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


~11K SLoC