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

Why is rust nightly required for WebAssembly? #2490

Open
cosminm-affnd opened this issue Jan 9, 2025 · 3 comments
Open

Why is rust nightly required for WebAssembly? #2490

cosminm-affnd opened this issue Jan 9, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@cosminm-affnd
Copy link

cosminm-affnd commented Jan 9, 2025

I've noticed that building WebAssembly requires rust nightly, which raises a risk when used in production.

Can you help me understand what features require nightly and whether there is a way to disable those and use stable. Failing that how can we reduce the risk of using rust nightly?

@cosminm-affnd cosminm-affnd added the enhancement New feature or request label Jan 9, 2025
Copy link

welcome bot commented Jan 9, 2025

Hi! Thanks for opening your first issue here! 😄

@anlumo
Copy link
Contributor

anlumo commented Jan 9, 2025

The feature that requires nightly is the thread pool, because it uses wasm threads.

@fzyzcjy
Copy link
Owner

fzyzcjy commented Jan 9, 2025

You can try to disable nightly and see which exact lines of code errors, and then maybe we can discuss whether to be disabled.

In addition, I also originally thought nightly is very dangerous and refuse to use it. But later iirc (not remember very clearly) some people on Rust forum discussed nightly is quite safe, and I used it and it works well.

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

No branches or pull requests

3 participants