-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
A-tokioArea: The main tokio crateArea: The main tokio crateC-feature-requestCategory: A feature request.Category: A feature request.T-wasmTopic: Web AssemblyTopic: Web Assembly
Description
I successfully made tokio work with fs
, threads
and timer
on browser, compile target is wasm32-unknown-unknown
. See the example:
https://github.com/utooland/tokio-on-browser.git
Infrastructures used to support features:
- forked tokio: https://github.com/utooland/tokio
- fs: https://github.com/utooland/tokio-fs-ext , based on browser's OPFS
- threads: https://github.com/utooland/wasm_thread , a forked version of https://crates.io/crates/wasm_thread
- timer: https://github.com/utooland/wasmtimer-rs , a forked version of https://crates.io/crates/wasmtimer
I'm not sure that could these features could be considered supported by upstream? I can help maintain these features. Current implements is not elegant enough, I will refactor it to be better if there features are acceptable for upstream.
afc163, bshy522, fireairforce, killagu and csmoejaredleechnkillagu
Metadata
Metadata
Assignees
Labels
A-tokioArea: The main tokio crateArea: The main tokio crateC-feature-requestCategory: A feature request.Category: A feature request.T-wasmTopic: Web AssemblyTopic: Web Assembly