# [1.8.0](https://github.com/asepharyana/mytheclipse/compare/v1.7.0...v1.8.0) (2026-08-29)
### Features
* round-5 abstractions — BatchProcessor, CircuitBreakerHealthCheck, TypedKeyRegistry, MetricsHttpHandler ([97b5e02](https://github.com/asepharyana/mytheclipse/commit/97b5e02820674a5b61a2d396f95df07f2b4fd735))
mytheclipse-config
Type-safe, dynamic configuration: load .env, YAML, JSON, or TOML directly
into a typed Rust struct, merge multiple sources with environment variables
taking priority, and optionally hot-reload when the source files change.
Features
env(default) —.envfile loading viadotenvy.yaml/toml(default) — structured file parsing (.jsonis always available).hot-reload(default) — watch files and swap in a freshly reloaded value.
Usage
use serde::Deserialize;
use mytheclipse_config::ConfigLoader;
#[derive(Debug, Deserialize, Clone)]
struct AppConfig {
port: u16,
database_url: String,
}
let config: AppConfig = ConfigLoader::new()
.merge_file("config.yaml".as_ref())?
.merge_env("APP") // APP_PORT, APP_DATABASE_URL override the file
.build()?;
Hot-reload
use mytheclipse_config::DynamicConfig;
# use serde::Deserialize;
# #[derive(Debug, Deserialize, Clone)] struct AppConfig { port: u16 }
let cfg = DynamicConfig::<AppConfig>::watch_files(
vec!["config.yaml".into()],
|| mytheclipse_config::ConfigLoader::new().merge_file("config.yaml".as_ref())?.build(),
)?;
let mut changes = cfg.subscribe();
tokio::spawn(async move {
while changes.recv().await.is_ok() {
println!("config reloaded: {:?}", cfg.get());
}
});