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
//! Camellia - A utility library.
//!
//! This library provides optional modules for environment management and configuration.
/// Environment management utilities
///
/// This module provides environment detection and management functionality.
/// It includes utilities to determine the current application environment
/// (development, production, etc.) and access environment-specific configurations.
///
/// # Available functions:
/// - `app_env()`: Get the current application environment
/// - `is_development()`: Check if running in development mode
/// - `is_production()`: Check if running in production mode
///
/// # Example:
/// ```rust
/// use landmap_camellia::env::{app_env, is_development};
///
/// if is_development() {
/// println!("Running in development mode");
/// }
/// ```
/// Configuration management utilities
///
/// This module provides comprehensive configuration management for applications.
/// It includes functionality for loading, compiling, and initializing configuration
/// settings from various sources including environment variables, files, and defaults.
///
/// # Available functions:
/// - `compile_config()`: Compile configuration from various sources
/// - `init_config()`: Initialize configuration with default settings
/// - `UseConfigOptions`: Configuration options for customizing behavior
///
/// # Features:
/// - Environment-aware configuration loading
/// - Support for multiple configuration formats
/// - Runtime configuration validation
/// - Integration with environment detection
///
/// # Example:
/// ```rust
/// use landmap_camellia::config::{UseConfigOptionsBuilder};
///
/// let options = UseConfigOptionsBuilder::new()
/// .schema("myapp")
/// .build();
/// ```