-
-
Notifications
You must be signed in to change notification settings - Fork 490
Yank rand 0.7.1 due to failure to compile with unresolved rand_core::OsRng import #890
Copy link
Copy link
Closed
Description
Common issues
Problem: rand 0.7.1 is failing to compile with the following error:
$ cargo check
Checking rand v0.7.1
error[E0432]: unresolved import `rand_core::OsRng`
--> /home/jsleeper/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.7.1/src/rngs/mod.rs:119:37
|
119 | #[cfg(feature="getrandom")] pub use rand_core::OsRng;
| ^^^^^^^^^^^^^^^^ no `OsRng` in the root
error: aborting due to previous error
For more information about this error, try `rustc --explain E0432`.
error: Could not compile `rand`.
To learn more, run the command again with --verbose.
Quick solutions:
- run
cargo update
OR - run
cargo update --package rand_coreto force justrand_coreto update
Details: A quick look and test makes me think (if I'm reading Cargo.toml correctly) this might be due to rand 0.7.1 requiring changes from rand_core 0.5.1, but only technically depending on rand_core 0.5?
rand_core dep requirement in Cargo.toml: https://github.com/rust-random/rand/blob/master/Cargo.toml#L57
rand_core 0.5.1 changelog: https://github.com/rust-random/rand/blob/master/rand_core/CHANGELOG.md#051---2019-08-28
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels