2 releases

0.0.2 Jun 23, 2025
0.0.1 Jun 13, 2022

#365 in Algorithms

Download history 18311/week @ 2025-10-19 30696/week @ 2025-10-26 49143/week @ 2025-11-02 38957/week @ 2025-11-09 21310/week @ 2025-11-16 14729/week @ 2025-11-23 16793/week @ 2025-11-30 8315/week @ 2025-12-07 7511/week @ 2025-12-14 5509/week @ 2025-12-21 1809/week @ 2025-12-28 1871/week @ 2026-01-04 1804/week @ 2026-01-11 1480/week @ 2026-01-18 1152/week @ 2026-01-25 1054/week @ 2026-02-01

5,612 downloads per month
Used in 12 crates (3 directly)

MIT/Apache

9KB
166 lines

rand-utf8

Random utf8 utility. This crate is #![no_std] but requires alloc.

Example

let mut rng = rand::rngs::SmallRng::seed_from_u64(0);
let my_str = rand_utf8::rand_utf8(&mut rng, 32);
assert_eq!(32, my_str.as_bytes().len());

License: MIT/Apache-2.0

Dependencies

~365KB