Skip to content

Commit 5ce7485

Browse files
authored
Merge pull request #77 from ltratt/vob_3_0_4
Prepare a 3.0.4 release.
2 parents aa23808 + 87c06e2 commit 5ce7485

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

CHANGES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# vob 3.0.4 (2025-03-17)
2+
3+
* Drop support for Rust pre-1.37.
4+
5+
* Add an optional bincode dependency, which can be used as an alternative to
6+
serde for encoding / decoding.
7+
8+
* Use Criterion for internal benchmarking and add several benchmarks.
9+
10+
111
# vob 3.0.3 (2022-08-02)
212

313
* Update dependencies.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "vob"
33
description = "Vector of Bits with Vec-like API and usize backing storage"
44
repository = "https://github.com/softdevteam/vob/"
5-
version = "3.0.3"
5+
version = "3.0.4"
66
authors = ["Laurence Tratt <laurie@tratt.net>"]
77
readme = "README.md"
88
license = "Apache-2.0/MIT"
@@ -16,8 +16,8 @@ bincode = { version = "2.0", features=["derive"], optional=true }
1616

1717
[dev-dependencies]
1818
criterion = "0.5"
19-
rand = "0.8"
20-
rand_pcg = "0.3"
19+
rand = "0.9"
20+
rand_pcg = "0.9"
2121

2222
[[bench]]
2323
name = "vob"

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,20 +1806,20 @@ mod tests {
18061806
}
18071807

18081808
fn random_vob(len: usize) -> Vob {
1809-
let mut rng = rand::thread_rng();
1809+
let mut rng = rand::rng();
18101810
let mut vob = Vob::with_capacity(len);
18111811
for _ in 0..len {
1812-
vob.push(rng.gen());
1812+
vob.push(rng.random());
18131813
}
18141814
vob
18151815
}
18161816

18171817
#[test]
18181818
fn test_extend_from_vob() {
1819-
let mut rng = rand::thread_rng();
1819+
let mut rng = rand::rng();
18201820
for _ in 0..200 {
1821-
let len_a: u8 = rng.gen();
1822-
let len_b: u8 = rng.gen();
1821+
let len_a: u8 = rng.random();
1822+
let len_b: u8 = rng.random();
18231823
let mut a = random_vob(len_a as usize);
18241824
let mut a_copy = a.clone();
18251825
let b = random_vob(len_b as usize);

0 commit comments

Comments
 (0)