Update Rust crate rand to 0.9 #50
Annotations
19 errors
the trait bound `rand_chacha::ChaCha20Rng: rand::SeedableRng` is not satisfied because the trait comes from a different crate version:
src/dleq.rs#L248
error[E0277]: the trait bound `rand_chacha::ChaCha20Rng: rand::SeedableRng` is not satisfied because the trait comes from a different crate version
--> src/dleq.rs:248:58
|
248 | let mut prng: ChaChaRng = SeedableRng::from_seed(seed);
| ^^^^ the trait `rand::SeedableRng` is not implemented for `rand_chacha::ChaCha20Rng`
|
note: there are multiple different versions of crate `rand_core` in the dependency graph
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rand_core-0.9.0/src/lib.rs:310:1
|
310 | pub trait SeedableRng: Sized {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait
|
::: src/oprf.rs:3:5
|
3 | use curve25519_dalek::constants;
| ---------------- one version of crate `rand_core` is used here, as a dependency of crate `curve25519_dalek`
...
10 | use rand::{CryptoRng, Rng};
| ---- one version of crate `rand_core` is used here, as a dependency of crate `rand`
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rand_chacha-0.3.1/src/chacha.rs:343:1
|
343 | chacha_impl!(ChaCha20Core, ChaCha20Rng, 10, "ChaCha with 20 rounds", abstract20);
| -------------------------------------------------------------------------------- this type doesn't implement the required trait
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rand_core-0.6.4/src/block.rs:68:1
|
68 | pub trait BlockRngCore {
| ---------------------- this is the found trait
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rand_chacha-0.9.0/src/chacha.rs:332:1
|
332 | / chacha_impl!(
333 | | ChaCha20Core,
334 | | ChaCha20Rng,
335 | | 10,
336 | | "ChaCha with 20 rounds",
337 | | abstract20,
338 | | );
| |_- this type implements the required trait
= note: two types coming from two different versions of the same crate are different types even if they look the same
= help: you can use `cargo tree` to explore your dependency tree
|
the trait bound `rand_chacha::ChaCha20Rng: rand::SeedableRng` is not satisfied because the trait comes from a different crate version:
src/dleq.rs#L248
error[E0277]: the trait bound `rand_chacha::ChaCha20Rng: rand::SeedableRng` is not satisfied because the trait comes from a different crate version
--> src/dleq.rs:248:35
|
248 | let mut prng: ChaChaRng = SeedableRng::from_seed(seed);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `rand::SeedableRng` is not implemented for `rand_chacha::ChaCha20Rng`
|
note: there are multiple different versions of crate `rand_core` in the dependency graph
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rand_core-0.9.0/src/lib.rs:310:1
|
310 | pub trait SeedableRng: Sized {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait
|
::: src/oprf.rs:3:5
|
3 | use curve25519_dalek::constants;
| ---------------- one version of crate `rand_core` is used here, as a dependency of crate `curve25519_dalek`
...
10 | use rand::{CryptoRng, Rng};
| ---- one version of crate `rand_core` is used here, as a dependency of crate `rand`
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rand_chacha-0.3.1/src/chacha.rs:343:1
|
343 | chacha_impl!(ChaCha20Core, ChaCha20Rng, 10, "ChaCha with 20 rounds", abstract20);
| -------------------------------------------------------------------------------- this type doesn't implement the required trait
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rand_core-0.6.4/src/block.rs:68:1
|
68 | pub trait BlockRngCore {
| ---------------------- this is the found trait
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rand_chacha-0.9.0/src/chacha.rs:332:1
|
332 | / chacha_impl!(
333 | | ChaCha20Core,
334 | | ChaCha20Rng,
335 | | 10,
336 | | "ChaCha with 20 rounds",
337 | | abstract20,
338 | | );
| |_- this type implements the required trait
= note: two types coming from two different versions of the same crate are different types even if they look the same
= help: you can use `cargo tree` to explore your dependency tree
|
the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied:
src/dleq.rs#L50
error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
--> src/dleq.rs:50:32
|
50 | let t = Scalar::random(rng);
| -------------- ^^^ the trait `rand_chacha::rand_core::RngCore` is not implemented for `T`
| |
| required by a bound introduced by this call
|
= note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
|
597 | pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
| ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting this bound
|
48 | T: Rng + CryptoRng + rand_chacha::rand_core::RngCore,
| +++++++++++++++++++++++++++++++++
|
the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied:
src/dleq.rs#L50
error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
--> src/dleq.rs:50:32
|
50 | let t = Scalar::random(rng);
| -------------- ^^^ the trait `rand_chacha::rand_core::CryptoRng` is not implemented for `T`
| |
| required by a bound introduced by this call
|
= note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
|
597 | pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
| ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting this bound
|
48 | T: Rng + CryptoRng + rand_chacha::rand_core::CryptoRng,
| +++++++++++++++++++++++++++++++++++
|
the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied:
src/oprf.rs#L321
error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
--> src/oprf.rs:321:32
|
321 | let k = Scalar::random(rng);
| -------------- ^^^ the trait `rand_chacha::rand_core::RngCore` is not implemented for `T`
| |
| required by a bound introduced by this call
|
= note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
|
597 | pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
| ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting this bound
|
320 | pub fn random<T: Rng + CryptoRng + rand_chacha::rand_core::RngCore>(rng: &mut T) -> Self {
| +++++++++++++++++++++++++++++++++
|
the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied:
src/oprf.rs#L321
error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
--> src/oprf.rs:321:32
|
321 | let k = Scalar::random(rng);
| -------------- ^^^ the trait `rand_chacha::rand_core::CryptoRng` is not implemented for `T`
| |
| required by a bound introduced by this call
|
= note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
|
597 | pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
| ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting this bound
|
320 | pub fn random<T: Rng + CryptoRng + rand_chacha::rand_core::CryptoRng>(rng: &mut T) -> Self {
| +++++++++++++++++++++++++++++++++++
|
the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied:
src/oprf.rs#L151
error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
--> src/oprf.rs:151:46
|
151 | let blinding_scalar = Scalar::random(rng);
| -------------- ^^^ the trait `rand_chacha::rand_core::RngCore` is not implemented for `T`
| |
| required by a bound introduced by this call
|
= note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
|
597 | pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
| ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting this bound
|
149 | T: Rng + CryptoRng + rand_chacha::rand_core::RngCore,
| +++++++++++++++++++++++++++++++++
|
the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied:
src/oprf.rs#L151
error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
--> src/oprf.rs:151:46
|
151 | let blinding_scalar = Scalar::random(rng);
| -------------- ^^^ the trait `rand_chacha::rand_core::CryptoRng` is not implemented for `T`
| |
| required by a bound introduced by this call
|
= note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
|
597 | pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
| ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting this bound
|
149 | T: Rng + CryptoRng + rand_chacha::rand_core::CryptoRng,
| +++++++++++++++++++++++++++++++++++
|
the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied:
src/oprf.rs#L125
error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
--> src/oprf.rs:125:46
|
125 | let blinding_scalar = Scalar::random(rng);
| -------------- ^^^ the trait `rand_chacha::rand_core::RngCore` is not implemented for `T`
| |
| required by a bound introduced by this call
|
= note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
|
597 | pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
| ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting this bound
|
121 | T: Rng + CryptoRng + rand_chacha::rand_core::RngCore,
| +++++++++++++++++++++++++++++++++
|
the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied:
src/oprf.rs#L125
error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
--> src/oprf.rs:125:46
|
125 | let blinding_scalar = Scalar::random(rng);
| -------------- ^^^ the trait `rand_chacha::rand_core::CryptoRng` is not implemented for `T`
| |
| required by a bound introduced by this call
|
= note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
|
597 | pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
| ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting this bound
|
121 | T: Rng + CryptoRng + rand_chacha::rand_core::CryptoRng,
| +++++++++++++++++++++++++++++++++++
|
unexpected `cfg` condition value: `cbindgen`:
src/oprf.rs#L532
error: unexpected `cfg` condition value: `cbindgen`
--> src/oprf.rs:532:16
|
532 | #[cfg_attr(not(feature = "cbindgen"), repr(C))]
| ^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `alloc`, `base64`, `default`, `serde`, `serde_base64`, and `std`
= help: consider adding `cbindgen` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `cbindgen`:
src/oprf.rs#L499
error: unexpected `cfg` condition value: `cbindgen`
--> src/oprf.rs:499:16
|
499 | #[cfg_attr(not(feature = "cbindgen"), repr(C))]
| ^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `alloc`, `base64`, `default`, `serde`, `serde_base64`, and `std`
= help: consider adding `cbindgen` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `cbindgen`:
src/oprf.rs#L426
error: unexpected `cfg` condition value: `cbindgen`
--> src/oprf.rs:426:16
|
426 | #[cfg_attr(not(feature = "cbindgen"), repr(C))]
| ^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `alloc`, `base64`, `default`, `serde`, `serde_base64`, and `std`
= help: consider adding `cbindgen` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `cbindgen`:
src/oprf.rs#L387
error: unexpected `cfg` condition value: `cbindgen`
--> src/oprf.rs:387:16
|
387 | #[cfg_attr(not(feature = "cbindgen"), repr(C))]
| ^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `alloc`, `base64`, `default`, `serde`, `serde_base64`, and `std`
= help: consider adding `cbindgen` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `cbindgen`:
src/oprf.rs#L295
error: unexpected `cfg` condition value: `cbindgen`
--> src/oprf.rs:295:16
|
295 | #[cfg_attr(not(feature = "cbindgen"), repr(C))]
| ^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `alloc`, `base64`, `default`, `serde`, `serde_base64`, and `std`
= help: consider adding `cbindgen` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `cbindgen`:
src/oprf.rs#L255
error: unexpected `cfg` condition value: `cbindgen`
--> src/oprf.rs:255:16
|
255 | #[cfg_attr(not(feature = "cbindgen"), repr(C))]
| ^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `alloc`, `base64`, `default`, `serde`, `serde_base64`, and `std`
= help: consider adding `cbindgen` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `cbindgen`:
src/oprf.rs#L217
error: unexpected `cfg` condition value: `cbindgen`
--> src/oprf.rs:217:16
|
217 | #[cfg_attr(not(feature = "cbindgen"), repr(C))]
| ^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `alloc`, `base64`, `default`, `serde`, `serde_base64`, and `std`
= help: consider adding `cbindgen` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `cbindgen`:
src/oprf.rs#L93
error: unexpected `cfg` condition value: `cbindgen`
--> src/oprf.rs:93:16
|
93 | #[cfg_attr(not(feature = "cbindgen"), repr(C))]
| ^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `alloc`, `base64`, `default`, `serde`, `serde_base64`, and `std`
= help: consider adding `cbindgen` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `cbindgen`:
src/oprf.rs#L37
error: unexpected `cfg` condition value: `cbindgen`
--> src/oprf.rs:37:16
|
37 | #[cfg_attr(not(feature = "cbindgen"), repr(C))]
| ^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `alloc`, `base64`, `default`, `serde`, `serde_base64`, and `std`
= help: consider adding `cbindgen` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: `-D unexpected-cfgs` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unexpected_cfgs)]`
|