(wat_path: impl AsRef<Path>)
| 49 | } |
| 50 | |
| 51 | fn build_wasm(wat_path: impl AsRef<Path>) -> Result<NamedTempFile> { |
| 52 | let mut wasm_file = NamedTempFile::new()?; |
| 53 | let wasm = wat::parse_file(wat_path)?; |
| 54 | wasm_file.write(&wasm)?; |
| 55 | Ok(wasm_file) |
| 56 | } |
| 57 | |
| 58 | // Very basic use case: compile binary wasm file and run specific function with arguments. |
| 59 | #[test] |
no test coverage detected