mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-04-22 06:48:03 +00:00
b19ba790fbde6b505f3e01868e1b692e0bfaeaaf
wasm-tools
Boilerplate code to test Parity WASM tools and compile rust/c/c++ code to wasm-contracts
How to compile contract
git clone https://github.com/NikVolf/wasm-tools
cd wasm-tools/runner
./build.sh <PATH TO C/C++/Rust source file>
./start.sh
and then open http://localhost:8000, specify input stream in Input input, press Execute call to run a contract call function, see storage update (if contract produced any) as well as Result stream (again, if contract produced any).
see /samples directory for sample contracts that are compiled this way
Prerequisites
- Emscripiten for C/C++ (see this page,
emccshould be in thePATH) - Rust with
wasm32-unknown-emscriptentarget (see this instruction to setup)
Description
Languages
Rust
85.7%
WebAssembly
13.9%
Just
0.4%