anarchist-readable-name-generator-lib

Crates.ioanarchist-readable-name-generator-lib
lib.rsanarchist-readable-name-generator-lib
version
sourcesrc
created_at2022-02-19 12:41:26.909502+00
updated_at2025-02-10 18:48:02.544913+00
descriptionGenerate a readable name from something with with famous anarchist writers
homepage
repositoryhttps://github.com/PurpleBooth/anarchist-readable-name-generator-lib.git
max_upload_size
id535172
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Billie Thompson (PurpleBooth)

documentation

README

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

Commit count: 31

cargo fmt