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

Tokio using Mio prevents compiling to WASM #49

Open
ERLindeman opened this issue Feb 26, 2023 · 1 comment
Open

Tokio using Mio prevents compiling to WASM #49

ERLindeman opened this issue Feb 26, 2023 · 1 comment

Comments

@ERLindeman
Copy link

Compiling any code to wasm32-unknown-unknown fails to build because of the optional Mio dependency of Tokio. Would it be possible to disable that option and force Tokio to accomplish the same result without inheriting that child dependency?

@d-e-s-o
Copy link
Owner

d-e-s-o commented Feb 27, 2023

I haven't looked into wasm support for a bit, but last I checked at least there was more to it than disabling an option. It was necessary to use proper replacement crates. Some of the offending crates may have added native support for wasm by now. Back in the day I had to replace hyper with something web-sys based, for example, but I recall at least one of the crates in the surrounding eco system to have had native wasm support in the works. That being said, we may be using too low level crates in some cases and would potentially have to switch them out for higher level counterparts that work on more platforms, if we were to support wasm use cases.

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

No branches or pull requests

2 participants