Skip to content

rsa compilation error #4

@illyrius666

Description

@illyrius666

rsa version mismatch with rand_core:

C:/Users/admin/.cargo/bin/cargo.exe build --color=always --message-format=json-diagnostic-rendered-ansi --package illyriaplus --lib --profile dev
   Compiling pumpkin-data v0.1.0-dev+1.21.11 (https://github.com/Pumpkin-MC/Pumpkin.git?branch=master#fb13004b)
   Compiling rsa v0.10.0-rc.13
error[E0432]: unresolved import `rand_core::TryRngCore`
 --> C:\Users\admin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\rsa-0.10.0-rc.13\src\dummy_rng.rs:2:31
  |
2 | use rand_core::{TryCryptoRng, TryRngCore};
  |                               ^^^^^^^^^^ no `TryRngCore` in the root

error[E0277]: the trait bound `DummyRng: TryRng` is not satisfied
   --> C:\Users\admin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\rsa-0.10.0-rc.13\src\dummy_rng.rs:24:23
    |
 24 | impl TryCryptoRng for DummyRng {}
    |                       ^^^^^^^^ unsatisfied trait bound
    |
help: the trait `DerefMut` is not implemented for `DummyRng`
   --> C:\Users\admin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\rsa-0.10.0-rc.13\src\dummy_rng.rs:7:1
    |
  7 | pub(crate) struct DummyRng;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: the trait `TryRng` is implemented for `UnwrapErr<R>`
    = note: required for `DummyRng` to implement `TryRng`
note: required by a bound in `TryCryptoRng`
   --> C:\Users\admin\.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 `rsa` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
Process finished with exit code 101

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