This guide assumes a Unix-like environment.
- Rust nightly toolchain (see rustup.rs)
- Rust wasm32-unknown-unkown target
- Toolchain zip from PBC (insert link)
- Extract the toolchain to a folder:
/tmp/pbc-rust-wasm
- Inside the folder you will find a folder called
token-contract
. - To compile the example contract run
cargo +nightly build --target wasm32-unknown-unknown
from thetoken-contract
folder - There should now be a WASM file named
token-contract.wasm
in/tmp/pbc-rust-wasm/token-contract/target/wasm32-unknown-unknown/debug/
.