Skip to content

chore(deps): update rust crate rand to 0.9 #7500

chore(deps): update rust crate rand to 0.9

chore(deps): update rust crate rand to 0.9 #7500

GitHub Actions / api-all failed Jan 27, 2025 in 0s

api-all

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
Note 0
Help 0

Versions

  • rustc 1.84.0 (9fc6b4312 2025-01-07)
  • cargo 1.84.0 (66221abde 2024-11-19)
  • clippy 0.1.84 (9fc6b43126 2025-01-07)

Annotations

Check failure on line 185 in core/tauri/src/manager.rs

See this annotation in the file changed.

@github-actions github-actions / api-all

the trait bound `rand::distr::StandardUniform: rand::distr::Distribution<usize>` is not satisfied because the trait comes from a different crate version

error[E0277]: the trait bound `rand::distr::StandardUniform: rand::distr::Distribution<usize>` is not satisfied because the trait comes from a different crate version
   --> core/tauri/src/manager.rs:185:32
    |
185 |     let nonce = rand::random::<usize>();
    |                                ^^^^^ the trait `rand::distr::Distribution<usize>` is not implemented for `rand::distr::StandardUniform`
    |
note: there are multiple different versions of crate `rand` in the dependency graph
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rand-0.9.0/src/distr/distribution.rs:35:1
    |
35  | pub trait Distribution<T> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait
    |
   ::: core/tauri/src/asset_protocol.rs:7:5
    |
7   | use rand::RngCore;
    |     ---- one version of crate `rand` is used here, as a direct dependency of the current crate
    |
   ::: core/tauri/src/api/notification.rs:161:30
    |
161 |       let mut notification = notify_rust::Notification::new();
    |                              ----------- one version of crate `rand` is used here, as a dependency of crate `zbus`
    |
   ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rand-0.9.0/src/distr/mod.rs:210:1
    |
210 | pub struct StandardUniform;
    | -------------------------- this type doesn't implement the required trait
    |
   ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rand-0.8.5/src/distributions/distribution.rs:35:1
    |
35  | pub trait Distribution<T> {
    | ------------------------- this is the found trait
    = help: you can use `cargo tree` to explore your dependency tree

Check failure on line 218 in core/tauri/src/asset_protocol.rs

See this annotation in the file changed.

@github-actions github-actions / api-all

use of deprecated function `rand::thread_rng`: renamed to `rng`

error: use of deprecated function `rand::thread_rng`: renamed to `rng`
   --> core/tauri/src/asset_protocol.rs:218:9
    |
218 |   rand::thread_rng().fill_bytes(&mut x);
    |         ^^^^^^^^^^
    |
    = note: `-D deprecated` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(deprecated)]`