Skip to content

website example code not working? #54

@DougAnderson444

Description

@DougAnderson444

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions