You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we don't document how Rand can be used with WASM. In particular:
We don't mention WASM in the rand readme or documentation. I think we should at least suggest to consult getrandom's documentation, because some feature flags may be required (also see Error when using Shuffle in a wasm project #990).
In the Rand book, we claim that getrandom does not use feature flags, which is confusing (and arguably wrong, because they are required for some WASM targets):
getrandom (and by extension rand_os) has limited support for no_std. It does not use feature flags, instead detecting requirements based on the target platform.
Currently, we don't document how Rand can be used with WASM. In particular:
randreadme or documentation. I think we should at least suggest to consult getrandom's documentation, because some feature flags may be required (also see Error when using Shuffle in a wasm project #990).