mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-11 23:52:03 +03:00
8 lines
171 B
JavaScript
8 lines
171 B
JavaScript
// For more comments about what's going on here, check out the `hello_world`
|
|
// example
|
|
const rust = import('./pkg');
|
|
|
|
rust
|
|
.then(m => m.run())
|
|
.catch(console.error);
|