#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

5 releases

0.1.4 Feb 10, 2025
0.1.3 Feb 9, 2025
0.1.2 Aug 14, 2024
0.1.1 Feb 19, 2022
0.1.0 Feb 19, 2022

#153 in Testing

Download history 8843/week @ 2025-01-10 6109/week @ 2025-01-17 6058/week @ 2025-01-24 5522/week @ 2025-01-31 6598/week @ 2025-02-07 4752/week @ 2025-02-14 2044/week @ 2025-02-21 3357/week @ 2025-02-28 1511/week @ 2025-03-07 1924/week @ 2025-03-14 3052/week @ 2025-03-21 3306/week @ 2025-03-28 3777/week @ 2025-04-04 3303/week @ 2025-04-11 2736/week @ 2025-04-18 2186/week @ 2025-04-25

12,639 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