A demo of running wasm created by AssemblyScript in Rust using wasmer.
To compile Rust into wasm, add target by following command:
$ rustup target add wasm32-unknown-unknown
$ rustc rust-demo/src/wasm/add.rs -o rust-demo/src/wasm/add.wasm --target=wasm32-unknown-unknown
$ cd rust-demo && cargo run
$ cd ts-demo
$ npm install
$ npm run asbuild
$ cd ../
$ cp ts-demo/build/optimized.wasm rust-demo/examples/wasm/add-ts.wasm
$ cd rust-demo
$ WASM_PATH="wasm/add-ts.wasm" cargo run --example asc