matrix-rust-sdk/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);