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
- 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;
let uuid = generate_uuid()?;
println!("Generated UUID: {}", uuid.uuid);
§Features
bytes
- Random byte generationchars
- Character and emoji conversiondate
- Date and time formattingkey
- Random key 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.
- output
- Output formatting types and traits.
- pi
- PI digit calculation module.
- rng
- Random number generation module.
- uuid
- UUID v7 generation module.