passg_lib/lib.rs
1//! This library provides a convenient way to generate pseudorandom passwords
2//! according to some given constraints.
3//!
4//! # Example
5//! ```
6//! use passg::prelude::*;
7//! let generator = GeneratorBuilder::default().build();
8//! let password = generator.generate();
9//! ```
10
11pub mod charsets;
12pub mod errors;
13pub mod generator;
14
15/// A prelude you can use to easily get started
16pub mod prelude {
17 pub use super::charsets::{Alpha, CollatingSeq, Digit, Special};
18 pub use super::errors::Error;
19 pub use super::generator::{Generator, GeneratorBuilder};
20}