#name #utility #readable #writer #readable-name #cha-cha-rng #readable-name-custom #romantic-kamalmaz

anarchist-readable-name-generator-lib

Generate a readable name from something with with famous anarchist writers

6 releases

Uses new Rust 2024

0.1.5 May 11, 2025
0.1.4 Feb 10, 2025
0.1.2 Aug 14, 2024
0.1.1 Feb 19, 2022

#158 in Testing

Download history 7569/week @ 2025-02-04 4035/week @ 2025-02-11 3140/week @ 2025-02-18 2405/week @ 2025-02-25 2747/week @ 2025-03-04 1663/week @ 2025-03-11 2266/week @ 2025-03-18 3395/week @ 2025-03-25 3447/week @ 2025-04-01 4164/week @ 2025-04-08 2287/week @ 2025-04-15 3017/week @ 2025-04-22 2464/week @ 2025-04-29 3070/week @ 2025-05-06 5434/week @ 2025-05-13 5913/week @ 2025-05-20

17,181 downloads per month
Used in readable-name-generator

CC0 license

480KB
3K SLoC

This library uses the authors from Anarchist Library to generate a random name

The intention here is to have a random name for situations you need to spin up some cloud compute resources and don't have a name in mind. Typically, for throwaway purposes.

Examples

It's possible to simply generate a random name

use anarchist_readable_name_generator_lib::readable_name;

assert!(readable_name().len() > 0)

You can also pass a seed or change the separator to give you predictability or minor customization.

use anarchist_readable_name_generator_lib::readable_name_custom;
use rand::prelude::*;
use rand_chacha::ChaChaRng;

let rng = ChaChaRng::seed_from_u64(2);
assert_eq!(
   readable_name_custom("+", rng),
   "romantic+kamalmaz"
);

anarchist-readable-name-generator-lib

This library uses the authors from Anarchist Library to generate a random name

The intention here is to have a random name for situations you need to spin up some cloud compute resources and don't have a name in mind. Typically, for throwaway purposes.

Examples

It's possible to simply generate a random name

use anarchist_readable_name_generator_lib::readable_name;

assert!(readable_name().len() > 0)

You can also pass a seed or change the separator to give you predictability or minor customization.

use anarchist_readable_name_generator_lib::readable_name_custom;
use rand::prelude::*;
use rand_chacha::ChaChaRng;

let rng = ChaChaRng::seed_from_u64(2);
assert_eq!(
readable_name_custom("+", rng),
"romantic+kamalmaz"
);

Read more at Docs.rs

Dependencies

~405KB