1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//! 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;
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Generate a default UUID (v7, standard format)
//! let uuid = generate_uuid(None, None, false)?;
//! println!("Generated UUID: {}", uuid.uuid);
//! # Ok(())
//! # }
//! ```
//!
//! # Features
//!
//! - `bytes` - Random byte generation
//! - `chars` - Character and emoji conversion
//! - `date` - Date and time formatting
//! - `key` - Random key generation
//! - `lorem` - Lorem ipsum text generation
//! - `pi` - PI digit calculation
//! - `rng` - Random number generation
//! - `uuid` - UUID v7 generation
//! - `json` - JSON output support
//! - `full` (default) - All features enabled
/// Random byte generation module.
/// Character and emoji conversion module.
/// Date and time formatting module.
/// Random key generation module.
/// Lorem ipsum text generation module.
/// PI digit calculation module.
/// Random number generation module.
/// UUID v7 generation module.
/// Build information module.
/// Error types for the library.
/// Output formatting types and traits.
// Re-export commonly used types at crate root
pub use GivError;