Beam shader with C++ bvm bindings for Rust
- Install
rustup
on your system. See rust installation instructions here. - Install rust toolchain:
$ rustup toolchain install stable
- Add wasm32-wasi target
$ rustup target add wasm32-wasi
- Compile the project
$ cargo build --target wasm32-wasi -r
- Compiled wasm files will be in
./target/wasm32-wasi/release
directory
After that you can use app.wasm
and contract.wasm
files in the same way you use it in Beam's contracts (see https://github.com/BeamMW/shader-sdk/wiki/Running-Beam-Shaders-using-CLI-Wallet).