prokio icon indicating copy to clipboard operation
prokio copied to clipboard

Enable prokio for wasm32-wasi (tokio)

Open futursolo opened this issue 3 years ago • 2 comments

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.

futursolo avatar Jul 16 '22 13:07 futursolo

@futursolo can you transfer this issue to the correct repository?

ranile avatar Oct 22 '22 14:10 ranile

multi-threading support so multiple CPU cores can be utilised.

After an attempt in #12, I have reached a conclusion that this is required for prokio to function properly.

futursolo avatar Dec 17 '23 13:12 futursolo