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

8 lines
110 B
JavaScript
Raw Normal View History

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