zonfig 0.1.0

A small dynamic configuration loader with file watching and hot reload support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Dynamic configuration loading and hot reload.
//!
//! `zonfig` loads JSON, YAML, and TOML files into Serde-compatible Rust
//! structures. It can also watch a file and publish updates when the file
//! changes.

mod error;
mod format;
mod loader;
mod watcher;

pub use crate::error::{Error, Result};
pub use crate::format::Format;
pub use crate::loader::{load, load_with_format};
pub use crate::watcher::{
    Config, WatchOptions, WatchedConfig, watch, watch_with_format, watch_with_options,
};