Skip to content

Browser support #35

@alardev

Description

@alardev

Currently it seems that Wasmtime supports being built against wasm32-wasip2 target. Unfortunately this probably leaves wasm32-unknown-unknown out as it does not support WASI features.

I was wondering if in theory Wasvy could run in bevy web builds as that would allow modding bevy games that run in the browser too.

perhaps using WASMI could be considered for web support?

https://0x53a.github.io/wasm-in-wasm/
https://github.com/0x53A/wasm-in-wasm

i found this awesome example of loading the WASM module implementing the specified WIT as a good example of how it could be done, additionally WASMI state that they are heavily inspired and can be used as a loose drop-in replacement for Wasmtime.

I am motivated in trying to build a WASMI version of Wasvy as a proof-of-concept, although I am kinda hoping that there is a way to build wasvy for web using wasmtime too.

Any additional information would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions