Skip to content

Commit 639aba2

Browse files
authored
Merge pull request #40 from freenet/update-deps-rand-tokio-tungstenite
chore: update dependencies for rand 0.9 and tokio-tungstenite 0.27
2 parents 1e9d379 + e574003 commit 639aba2

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## [0.1.14] - 2025-09-04
4+
5+
### Changed
6+
- Updated `tokio-tungstenite` from 0.26.1 to 0.27.0
7+
- Updated `rand` from 0.8 to 0.9 (dev dependency)
8+
- Fixed `from_entropy()` to use `from_os_rng()` for rand 0.9 compatibility
9+
10+
### Note
11+
- [AI-assisted debugging and comment]
12+
- This release updates dependencies to support freenet-core dependency updates
13+
314
## [0.1.9] - 2025-06-19
415

516
### Added

rust/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "freenet-stdlib"
3-
version = "0.1.11"
3+
version = "0.1.14"
44
edition = "2021"
55
rust-version = "1.71.1"
66
publish = true
@@ -32,7 +32,7 @@ freenet-macros = { path = "../rust-macros", version = "0.1.0-rc1" }
3232

3333
[target.'cfg(any(unix, windows))'.dependencies]
3434
tokio = { version = "1", optional = true, features = ["macros", "parking_lot", "rt-multi-thread", "sync", "time"] }
35-
tokio-tungstenite = { version = "0.26.1", optional = true }
35+
tokio-tungstenite = { version = "0.27.0", optional = true }
3636
serde_with = { version = "3" }
3737

3838
[target.'cfg(target_family = "wasm")'.dependencies]
@@ -59,7 +59,7 @@ optional = true
5959
[target.'cfg(any(unix, windows))'.dev-dependencies]
6060
bincode = "1"
6161
wasmer = { version = "5.0.4", features = [ "sys-default"] }
62-
rand = { version = "0.8", features = ["small_rng"] }
62+
rand = { version = "0.9", features = ["small_rng"] }
6363
arbitrary = { version = "1", features = ["derive"] }
6464

6565
[features]

rust/src/contract_interface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@ mod test {
15581558

15591559
static RND_BYTES: Lazy<[u8; 1024]> = Lazy::new(|| {
15601560
let mut bytes = [0; 1024];
1561-
let mut rng = SmallRng::from_entropy();
1561+
let mut rng = SmallRng::from_os_rng();
15621562
rng.fill(&mut bytes);
15631563
bytes
15641564
});

0 commit comments

Comments
 (0)