From 97f9fc8f9c3be1676f654cb67b9036bf2f6cb718 Mon Sep 17 00:00:00 2001 From: Ian Clarke Date: Thu, 10 Jul 2025 22:22:51 -0500 Subject: [PATCH 1/3] chore: bump version to 0.1.12 for compatibility fix --- rust/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 768569c..2f1609f 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "freenet-stdlib" -version = "0.1.9" +version = "0.1.12" edition = "2021" rust-version = "1.71.1" publish = true From 66baf39f1907dad38c2a97c4946563636072065e Mon Sep 17 00:00:00 2001 From: Ian Clarke Date: Thu, 10 Jul 2025 22:39:14 -0500 Subject: [PATCH 2/3] chore: bump version to 0.1.13 --- rust/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 2f1609f..f0cef42 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "freenet-stdlib" -version = "0.1.12" +version = "0.1.13" edition = "2021" rust-version = "1.71.1" publish = true From e574003b2d11fc726600936389d9680cabdd9d68 Mon Sep 17 00:00:00 2001 From: Ian Clarke Date: Thu, 4 Sep 2025 02:18:30 +0200 Subject: [PATCH 3/3] chore: update dependencies for rand 0.9 and tokio-tungstenite 0.27 [AI-assisted debugging and comment] - Update tokio-tungstenite from 0.26.1 to 0.27.0 - Update rand from 0.8 to 0.9 (dev dependency) - Replace from_entropy() with from_os_rng() for rand 0.9 - Bump version to 0.1.14 This enables freenet-core to update these dependencies. --- CHANGELOG.md | 11 +++++++++++ rust/Cargo.toml | 6 +++--- rust/src/contract_interface.rs | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2656f7c..60069f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [0.1.14] - 2025-09-04 + +### Changed +- Updated `tokio-tungstenite` from 0.26.1 to 0.27.0 +- Updated `rand` from 0.8 to 0.9 (dev dependency) +- Fixed `from_entropy()` to use `from_os_rng()` for rand 0.9 compatibility + +### Note +- [AI-assisted debugging and comment] +- This release updates dependencies to support freenet-core dependency updates + ## [0.1.9] - 2025-06-19 ### Added diff --git a/rust/Cargo.toml b/rust/Cargo.toml index f0cef42..79539ca 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "freenet-stdlib" -version = "0.1.13" +version = "0.1.14" edition = "2021" rust-version = "1.71.1" publish = true @@ -32,7 +32,7 @@ freenet-macros = { path = "../rust-macros", version = "0.1.0-rc1" } [target.'cfg(any(unix, windows))'.dependencies] tokio = { version = "1", optional = true, features = ["macros", "parking_lot", "rt-multi-thread", "sync", "time"] } -tokio-tungstenite = { version = "0.26.1", optional = true } +tokio-tungstenite = { version = "0.27.0", optional = true } serde_with = { version = "3" } [target.'cfg(target_family = "wasm")'.dependencies] @@ -59,7 +59,7 @@ optional = true [target.'cfg(any(unix, windows))'.dev-dependencies] bincode = "1" wasmer = { version = "5.0.4", features = [ "sys-default"] } -rand = { version = "0.8", features = ["small_rng"] } +rand = { version = "0.9", features = ["small_rng"] } arbitrary = { version = "1", features = ["derive"] } [features] diff --git a/rust/src/contract_interface.rs b/rust/src/contract_interface.rs index cebb788..0a3710c 100644 --- a/rust/src/contract_interface.rs +++ b/rust/src/contract_interface.rs @@ -1558,7 +1558,7 @@ mod test { static RND_BYTES: Lazy<[u8; 1024]> = Lazy::new(|| { let mut bytes = [0; 1024]; - let mut rng = SmallRng::from_entropy(); + let mut rng = SmallRng::from_os_rng(); rng.fill(&mut bytes); bytes });