srfng

Crates.iosrfng
lib.rssrfng
version1.0.1
sourcesrc
created_at2022-01-20 02:25:03.085627
updated_at2023-07-19 23:43:25.070914
descriptionA library for generating semi-random file names
homepagehttps://coruscateor.com/projects/srfng
repositoryhttps://github.com/coruscateor/srfng
max_upload_size
id517173
size18,868
Paul Saunders (coruscateor)

documentation

README

srfng

Semi-Random Filename Generator

[crates.io] [github.com]

This library makes it convenient to generate file names consisting of a date and random characters.

Example usage:

let mut gen = srfng::Generator::new();

println!("{}", gen.generate().as_str());

Which prints out something like:

13072022_5m88i663tw17265F

Which you can use to name a file.

A commandline tool using this crate can be found here.

Coding Style

This project uses a coding style the emphasises the use of white space over keeping the line and column counts as low as possible.

So this:

fn foo()
{

    bar();

}

Not this:

fn foo()
{
    bar();
}


License

Licensed under either of:

at your discretion


Contributing

Please clone the repository and create an issue explaining what feature or features you'd like to add or bug or bugs you'd like to fix and perhaps how you intend to implement these additions or fixes. Try to include details though it doesn't need to be exhaustive and we'll take it from there (dependant on availability).


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 5

cargo fmt