#dictionary #id #macro #nanoid

nanoid-dictionary

Popular alphabets for use with nanoid

5 releases

Uses new Rust 2021

0.4.3 Feb 24, 2022
0.4.2 Feb 15, 2022
0.4.1 Feb 15, 2022
0.1.1 Jul 4, 2021
0.1.0 Jul 4, 2021

#424 in Rust patterns

Download history 124/week @ 2022-08-13 130/week @ 2022-08-20 127/week @ 2022-08-27 153/week @ 2022-09-03 207/week @ 2022-09-10 121/week @ 2022-09-17 123/week @ 2022-09-24 153/week @ 2022-10-01 216/week @ 2022-10-08 172/week @ 2022-10-15 86/week @ 2022-10-22 147/week @ 2022-10-29 126/week @ 2022-11-05 66/week @ 2022-11-12 99/week @ 2022-11-19 136/week @ 2022-11-26

446 downloads per month
Used in 2 crates (via statehub-id)

MIT license

6KB
80 lines

nanoid-dictionary

Popular alphabets for use with nanoid::nanoid!() macro

use nanoid_dictionary::NOLOOKALIKES;
use nanoid::nanoid;

fn main() {
    let id = nanoid!(21, NOLOOKALIKES);
    println!("{}", id);
}

lib.rs:

Popular alphabets for use with nanoid::nanoid!() macro

use nanoid_dictionary::NOLOOKALIKES;
use nanoid::nanoid;

let id = nanoid!(21, NOLOOKALIKES);
assert_eq!(id.len(), 21);
println!("{}", id);

No runtime deps