You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-15 02:24:18 +02:00
9 lines
251 B
JavaScript
9 lines
251 B
JavaScript
import init, {set_panic_hook, add} from '/wasm/project.js';
|
|
|
|
(async () => {
|
|
// Run the init method to initiate the WebAssembly module.
|
|
await init();
|
|
set_panic_hook();
|
|
document.querySelector("#wasmoutput").innerHTML = add(1, 2);
|
|
})();
|