matrix-rust-sdk/crates/matrix-sdk/examples/wasm_command_bot/index.js

8 lines
110 B
JavaScript

const rust = import('./pkg');
rust
.then(m => {
return m.run()
})
.catch(console.error);