Skip to content

Upstream rand_core release broke this package #788

@karalabe

Description

@karalabe
error[E0432]: unresolved import `rand_core::TryRngCore`
 --> /Users/karalabe/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.4.0-rc.0/src/sys_rng.rs:2:31
  |
2 | use rand_core::{TryCryptoRng, TryRngCore};
  |                               ^^^^^^^^^^ no `TryRngCore` in the root

error[E0277]: the trait bound `SysRng: TryRng` is not satisfied
   --> /Users/karalabe/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.4.0-rc.0/src/sys_rng.rs:54:23
    |
 54 | impl TryCryptoRng for SysRng {}
    |                       ^^^^^^ unsatisfied trait bound
    |
help: the trait `DerefMut` is not implemented for `SysRng`
   --> /Users/karalabe/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.4.0-rc.0/src/sys_rng.rs:33:1
    |
 33 | pub struct SysRng;
    | ^^^^^^^^^^^^^^^^^
    = help: the trait `TryRng` is implemented for `UnwrapErr<R>`
    = note: required for `SysRng` to implement `TryRng`
note: required by a bound in `TryCryptoRng`
   --> /Users/karalabe/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.10.0-rc-6/src/lib.rs:243:25
    |
243 | pub trait TryCryptoRng: TryRng {}
    |                         ^^^^^^ required by this bound in `TryCryptoRng`

Some errors have detailed explanations: E0277, E0432.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `getrandom` (lib) due to 2 previous errors

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