From 30c755f5172b435776ae474c6c52ea4f0956fc59 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Jun 2026 10:06:38 +0000 Subject: [PATCH 1/2] build(deps): update rand requirement from 0.9.2 to 0.10.1 Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-random/rand/compare/rand_core-0.9.2...0.10.1) --- updated-dependencies: - dependency-name: rand dependency-version: 0.10.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- libosdp/Cargo.toml | 2 +- osdpctl/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libosdp/Cargo.toml b/libosdp/Cargo.toml index 1fc19c6..2c48f28 100644 --- a/libosdp/Cargo.toml +++ b/libosdp/Cargo.toml @@ -26,7 +26,7 @@ itoa = "1.0.17" [dev-dependencies] env_logger = "0.11.8" multiqueue = "0.3.2" -rand = "0.9.2" +rand = "0.10.1" ringbuf = "0.5.0" sha256 = "1.6.0" diff --git a/osdpctl/Cargo.toml b/osdpctl/Cargo.toml index 661a728..11e8c19 100644 --- a/osdpctl/Cargo.toml +++ b/osdpctl/Cargo.toml @@ -24,5 +24,5 @@ libosdp = { path = "../libosdp" } log = "0.4.29" log4rs = "1.4.0" nix = { version = "0.31.1", features = ["signal"] } -rand = "0.9.2" +rand = "0.10.1" toml = "1.1.2" From 47fc666c7099c67d0f95bc3eae338309776e3864 Mon Sep 17 00:00:00 2001 From: Siddharth Chandrasekaran Date: Tue, 9 Jun 2026 12:14:08 +0200 Subject: [PATCH 2/2] osdpctl, libosdp: Migrate to rand 0.10 RngExt trait rand 0.10 renamed the Rng trait to RngExt (RngCore became Rng), moving the slice fill() method onto RngExt. Update the imports so fill() on ThreadRng resolves again. Signed-off-by: Siddharth Chandrasekaran --- libosdp/tests/file_transfer.rs | 2 +- osdpctl/src/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libosdp/tests/file_transfer.rs b/libosdp/tests/file_transfer.rs index 60ce3b7..94d29d8 100644 --- a/libosdp/tests/file_transfer.rs +++ b/libosdp/tests/file_transfer.rs @@ -9,7 +9,7 @@ type Result = core::result::Result; use core::time::Duration; use libosdp::{OsdpCommand, OsdpCommandFileTx, OsdpError, OsdpFileOps}; -use rand::Rng; +use rand::RngExt; use std::{ cmp, collections::HashMap, diff --git a/osdpctl/src/config.rs b/osdpctl/src/config.rs index bc1e551..c1e76f9 100644 --- a/osdpctl/src/config.rs +++ b/osdpctl/src/config.rs @@ -7,7 +7,7 @@ use anyhow::bail; use anyhow::Context; use configparser::ini::Ini; use libosdp::{ControlPanelBuilder, OsdpFlag, PdCapability, PdId, PdInfoBuilder}; -use rand::Rng; +use rand::RngExt; use std::{ fmt::Write, path::{Path, PathBuf},