-
-
Notifications
You must be signed in to change notification settings - Fork 463
rand with stdweb feature is not compatible with wasm32-unkown-emscripten target or --nodejs in wasm32-unkown-unknown target #442
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
Comments
I found the
So I think this is a compatiblity bug |
@huangjj27 Thank you for opening the issue. I think one problem is that we have this in [target.wasm32-unknown-unknown.dependencies]
stdweb = { version = "0.4", optional = true } Also I have tried a fix in https://github.com/pitdicker/rand/tree/emscripten, but have trouble testing it out locally. Can you give it a try? |
@pitdicker I'm sorry I don't have emscripten locally neither. |
It seen fix the problem, but causing another. |
Hi, everyon! I was trying to use rand in
wasm32-unknown-unknown
target, so I added thestdweb
features incargo.toml
:and it did work fine with the target.
However, in this build, it fails me with such given error:
Is it a compatiblity issue between these 2 wasm target?
The text was updated successfully, but these errors were encountered: