Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <!-- the javascript bindings -->
- <script src="qr_rust.js"></script>
- <script>
- wasm_bindgen('qr_rust_bg.wasm')
- .then(() => {
- console.log('it is loaded!');
- const { decode_qr } = wasm_bindgen;
- const output = decode_qr(new Uint8Array([1,2,3,4,5]));
- console.log("output of decode_qr:", output);
- })
- .catch(console.error);
- </script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement