Compile the test.rs manually then run the main.rs. cd src rustc src/test.rs --target=wasm32-wasi cd .. cargo r