The rust SDK is a WIP.
curl https://sh.rustup.rs -sSf | sh
Need to add the wasm target before we can compile rust for it:
rustup target add wasm32-unknown-unknown
The example projects use cargo, so there are two ways to build the project:
- Will build a development copy:
cargo build --target wasm32-unknown-unknown - Build for release:
cargo build --target wasm32-unknown-unknown --release
Once you build the .wasm file you can publish it to the Hub using wasme. Navigate to the rust/target/wasm32-unknown-unknown/release directory and run:
wasme push webassemblyhub.io/<github username>/<filter-name>:v0.1 ./wasm_filter_bindings.wasm
For more information about using wasme and the WebAssemblyHub check here.