add simple rust example

This commit is contained in:
2021-11-06 18:52:52 +01:00
parent 2178ca5296
commit 32d2519d2d
5 changed files with 60 additions and 2 deletions

2
examples/rust/build.sh Executable file
View File

@@ -0,0 +1,2 @@
rustc --target=wasm32-unknown-unknown --crate-type cdylib -C opt-level="z" -C "link-args=--import-memory --initial-memory=262144 -zstack-size=65536" -o tunnel.wasm tunnel.rs && \
wasm-opt -Oz -o tunnel.wasm tunnel.wasm