Expand description
Giv - A library for generating useful values.
This library provides functionality for generating:
- Random bytes with various encodings
- Character and emoji conversion
- Formatted dates and timestamps
- Cryptographically secure random keys
- Lorem ipsum placeholder text
- UUID v7 identifiers
- PI digits with configurable precision
- Random numbers using dice notation or ranges
Each module corresponds to a feature flag, allowing you to include only the functionality you need. All features are enabled by default.
§Examples
use giv::uuid::generate_uuid;
// Generate a default UUID (v7, standard format)
let uuid = generate_uuid(None, None, false)?;
println!("Generated UUID: {}", uuid.uuid);§Features
bytes- Random byte generationchars- Character and emoji conversiondate- Date and time formattingkey- Random key generationlorem- Lorem ipsum text generationpi- PI digit calculationrng- Random number generationuuid- UUID v7 generationjson- JSON output supportfull(default) - All features enabled
Re-exports§
pub use error::GivError;
Modules§
- build_
info - Build information module. Build information module.
- bytes
- Random byte generation module.
- chars
- Character and emoji conversion module.
- date
- Date and time formatting module.
- error
- Error types for the library.
- key
- Random key generation module.
- lorem
- Lorem ipsum text generation module.
- output
- Output formatting types and traits.
- pi
- PI digit calculation module.
- rng
- Random number generation module.
- uuid
- UUID v7 generation module.