wapc-rs
wapc-rs copied to clipboard
website example code not working?
Hi there,
This looks like a really cool project and I am excited to try it out.
I did compile the hello_world_rust example and tried it uploading hello_world_rust.wasm into the browser on the home page (https://wapc.io/, Step 5). Nothing displayed, but in the console I got:
1df93b7f.4dbe1be6.js:1 Fetching wasm bytes from file system
1df93b7f.4dbe1be6.js:1 Read 146685 bytes from file system
1df93b7f.4dbe1be6.js:1 Instantiating waPCHost with the wasm file
1df93b7f.4dbe1be6.js:1 Host instantiated
1df93b7f.4dbe1be6.js:1 Invoking 'toUppercase' with 18 byte payload
1df93b7f.4dbe1be6.js:1 No handler registered for function toUppercase
1df93b7f.4dbe1be6.js:1 That handler was not exposed to the host. Are you sure you registered the handler in the wapc_init call?
1df93b7f.4dbe1be6.js:1 Host call complete
I didn't see toUppercase or wapc_init anywhere in the template code, I wonder if this is legacy code from a previous version?
@DougAnderson444 Thanks for creating this issue! We'll track it down. Very well could be something not being in sync with some of the technology refreshes.