-
Notifications
You must be signed in to change notification settings - Fork 218
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
rand is unusable due to crate incompatibilities #531
Comments
You are correct, but I don't know much what to do here.
rand_{pcg,xorshift} is not one of the top-crates or a cookbook item, so it only shows up because it's a dependency. rand 0.7 does not depend on rand_{pcg,xorshift}, only rand 0.6.5 does:
Thus the version of rand_{pcg,xorshift} that is included is the one that's compatible with the crate that needs it. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I don't think that'd be the right solution. Reading the code, hand-curating of certain crates already happens with |
OK, in that case you will need to either
The playground tries really hard to make no decisions about what crates to include. I simply don't want to get into the game of "why didn't you select my crate". |
@shepmaster Could this be resolved by cargo features on |
It already optionally depends on rand_pcg, so follow that pattern and add all of the other generators as optional dependencies, then create a feature that enables them and enable that feature for the playground. |
The playground now supports importing all the crates we've compiled (#540) so this modified version works:
Everything else appears to require upstream work, so I'm going to close this for now. Thanks! |
The current rand crates included in the playground are:
I haven't checked all of them, but this makes the Pcg and XorShift RNGs unusable because they are outdated, and they are using an older version of
rand_core
. E.g.:This complains:
Due to incompatible crate versions.
The text was updated successfully, but these errors were encountered: