Skip to content

Semver issue between rand, rand_core 0.4.0 and rand_core 0.3.0 #766

@Eijebong

Description

@Eijebong

Have a Cargo.toml like that,

[dependencies]
rand = "0.6.5"
rand_core = "0.4.0"

cargo build runs as expected.

After a cargo update -p rand_core:0.3.1 --precise 0.3.0 though, cargo build fails with:

error[E0277]: the trait bound `rand_hc::Hc128Rng: rand_core::SeedableRng` is not satisfied
   --> /home/eijebong/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/src/deprecated.rs:282:5
    |
282 | /     fn from_seed(seed: Self::Seed) -> Self {
283 | |         StdRng(rngs::StdRng::from_seed(seed))
284 | |     }
    | |_____^ the trait `rand_core::SeedableRng` is not implemented for `rand_hc::Hc128Rng`

error: aborting due to 31 previous errors

rand_core 0.4 should probably be updated to depend on rand_core 0.3.1 at least and released as 0.4.1 (might be worth to yank 0.4.0 after that).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions