-
Notifications
You must be signed in to change notification settings - Fork 312
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
ndarray-rand doesn't work with rand 0.7 #658
Comments
perhaps i'm hitting rust-lang/rust#22750. I guess if ndarray-rand doesn't support rand 0.7 that should be encoded in ndarray-rand's cargo.toml? |
Ah I see it does specify 0.6 explicitly: ndarray/ndarray-rand/Cargo.toml Line 15 in 98bf3b6
|
I had the exact same issue a couple of hours ago when working on rust-ndarray/ndarray-linalg#166 - I am little bit surprised by I guess, overall, we should aim to keep close to the latest release of |
Any ideas why cargo doesn't use Is there some complexity with there being a workspace? Seems unlikely but @ngoldbaum if the |
Argh, I'm sorry, I copy/pasted the |
Ah OK that makes sense. I had thought cargo would use the necessary version for each crate... Or at least state that there were conflicting versions - not sure why this silently breaks... |
Yeah, the bad error messages are an instance of rust-lang/rust#22750. Hopefully that'll get fixed at some point. This kind of issue has come up in the past with We should update |
The test program in the ndarray-rand documentation doesn't compile with rand 0.7:
main.rs:
cargo.toml:
compile error:
It works if I specify
rand = "0.6"
in cargo.toml.Apologies if this issue is documented already and I've missed it.
The text was updated successfully, but these errors were encountered: