-
Notifications
You must be signed in to change notification settings - Fork 192
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
Consider support for rand 0.7 #75
Comments
Just trying the update, I found that the method signatures of Generally though, I think the experience with a version range was poor in the past, as Cargo really tries to just grab the newest possible. And if one part of your dependency tree ends up wanting num-bigint+rand-0.6, while another wants num-bigint+rand-0.5, then you're stuck. |
Rand 0.7 just came out today. I think what I may try is bumping to num-bigint 0.3 with support for rand 0.7, and then have a num-bigint 0.2.x update which re-exports everything from 0.3 except the rand support, keeping its own support for rand 0.5. (Yes, this means skipping 0.6 -- I don't want to version lock with their every update.) |
Oh, right, we can't do a "re-export and add rand 0.5" in 0.2.x due to coherence:
I think everything else would work, but So nevermind, it will have to be a fully independent bump. |
Maybe depend on both versions of rand and allow selecting which one(s) to use using features? |
also, maybe rename the issue to "Consider support for rand 0.7" |
I also encountered this problem today, because I am currently using 'rand v0.7', using this' crate 'will encounter conflicts, so I can only fork one copy, and then manually change the' rand 'version to' v0.7 '. |
Has any progress on this been made? It would be nice being able to use newer versions of rand combined with the random number generation support provided by num-bigint. |
Currently the
rand
feature ofnum-bigint
usesrand
version 0.5, although version 0.6 has been released. According to the rand documentation the update shouldn't affect the required version of rustc for therand
feature.I can't quite tell what effects it would have for backwards compatibility in general, but maybe one could use a range for the version.
Related issue: #47
The text was updated successfully, but these errors were encountered: