Skip to content

Enable prokio for wasm32-wasi (tokio) #1

Open
@futursolo

Description

@futursolo

Tokio has just landed support for wasm32-wasi.
However, wasi misses some essential features for Yew Runtime to become useful under wasi.

wasi can be used for:

  • Client-Side Rendering
    (wasi in Browser)
  • Server-Side Rendering
    (wasi in JavaScript-capable WebAssembly Runtime & Standalone WebAssembly Runtime)
  • Static-Site Generation
    (wasi in JavaScript-capable WebAssembly Runtime & Standalone WebAssembly Runtime)

This issue tracks the tokio features required to land wasi support for Yew Runtime:

  • wasi target currently lacks networking capability in general.
    (needed for CSR and SSR.)
    This is primarily due to sockets under wasi is not standardised.
    There is an alternative proposal for an HTTP interface.
  • tokio::fs for wasi.
    (needed for SSG and potentially SSR.)
  • multi-threading support so prokio can reliably spawn futures to current thread.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions