Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable prokio for wasm32-wasi (tokio) #1

Open
3 tasks
futursolo opened this issue Jul 16, 2022 · 2 comments
Open
3 tasks

Enable prokio for wasm32-wasi (tokio) #1

futursolo opened this issue Jul 16, 2022 · 2 comments

Comments

@futursolo
Copy link
Member

futursolo commented Jul 16, 2022

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.
@hamza1311
Copy link
Member

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

@futursolo futursolo transferred this issue from yewstack/yew Oct 22, 2022
@futursolo futursolo changed the title Enable Yew Runtime for wasm32-wasi Enable prokio for wasm32-wasi (tokio) Oct 22, 2022
@futursolo
Copy link
Member Author

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.

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

No branches or pull requests

2 participants