Dependency conflicts with rand 0.9
I'm running into some issues when depending on the rand crate version 0.9, and when using this version to generate random BInt objects. For example,
let c: BInt<4> = rng.random();
gives the error
error[E0277]: the trait bound `StandardUniform: Distribution<BInt<4>>` is not satisfied
--> src/zomega.rs:333:30
|
333 | let c: BInt<4> = rng.random();
| ^^^^^^ the trait `Distribution<BInt<4>>` is not implemented for `StandardUniform
I also get a bunch of warning about conflicting rand crates in my dependency tree when loading traits from bnum.
I figure the easiest solution is to upgrade rand to 0.9, but I understand if that would require some rewriting to use the newer API.
Hi @eddieschoute, thanks for raising this. Support for rand v0.9 is something that will be coming in the next major version (0.14). This has sadly been delayed from being published, as there were quite a few things which took much longer than expected to implement/update, but I hope to have it close to being published by the end of the year.
The fact that rand is still not in 1.x is one of the main reasons for bnum still being in 0.x; it seems that will be the case for a while, judging by https://github.com/rust-random/rand/issues/693.
Thank you for the explanation and good luck with the 0.14 release