Expand description
A thread-safe configuration management library with JSON file support.
This module provides a simple way to load and access configuration values from JSON files
stored in a configs/ directory. Configurations are cached globally for efficient access.
§Examples
use config_ro::Config;
// Load the "database" configuration (reads from "configs/database.json")
let config = Config::new("database");
// Access nested values using dot notation
let port: u16 = config.get("database.port").unwrap();
let host: String = config.get("database.host").unwrap();Structs§
- Config
- Configuration instance that provides access to cached configuration values