Skip to content

Commit e44c145

Browse files
committed
chore: update dependencies to latest versions
In particular, wyhash has been released which moves to rand 0.9, which brings quite a few of breaking changes. Luckily, we don't depend on it too much so the move is trivial.
1 parent 6d3652a commit e44c145

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ std = ["alloc"]
2121
js = ["std", "getrandom"]
2222

2323
[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies]
24-
getrandom = { version = "0.2", features = ["js"], optional = true }
24+
getrandom = { version = "0.3", features = ["wasm_js"], optional = true }
2525

2626
[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dev-dependencies]
2727
wasm-bindgen-test = "0.3"
28-
getrandom = { version = "0.2", features = ["js"] }
28+
getrandom = { version = "0.3", features = ["wasm_js"] }
2929

3030
[dev-dependencies]
31-
rand = "0.8"
32-
wyhash = "0.5"
33-
getrandom = "0.2"
31+
rand = "0.9"
32+
wyhash = "0.6"
33+
getrandom = "0.3"
3434

3535
[package.metadata.docs.rs]
3636
all-features = true

benches/bench.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use wyhash::WyRng;
88

99
#[bench]
1010
fn shuffle_wyhash(b: &mut Bencher) {
11-
let mut rng = WyRng::from_rng(thread_rng()).unwrap();
11+
let mut rng = WyRng::from_rng(rand::rng()).unwrap();
1212
let mut x = (0..100).collect::<Vec<usize>>();
1313
b.iter(|| {
1414
x.shuffle(&mut rng);
@@ -28,7 +28,7 @@ fn shuffle_fastrand(b: &mut Bencher) {
2828

2929
#[bench]
3030
fn u8_wyhash(b: &mut Bencher) {
31-
let mut rng = WyRng::from_rng(thread_rng()).unwrap();
31+
let mut rng = WyRng::from_rng(rand::rng()).unwrap();
3232
b.iter(|| {
3333
let mut sum = 0u8;
3434
for _ in 0..10_000 {
@@ -52,7 +52,7 @@ fn u8_fastrand(b: &mut Bencher) {
5252

5353
#[bench]
5454
fn u32_wyhash(b: &mut Bencher) {
55-
let mut rng = WyRng::from_rng(thread_rng()).unwrap();
55+
let mut rng = WyRng::from_rng(rand::rng()).unwrap();
5656
b.iter(|| {
5757
let mut sum = 0u32;
5858
for _ in 0..10_000 {

0 commit comments

Comments
 (0)