Skip to main content

read_toml_dir

Function read_toml_dir 

Source
pub fn read_toml_dir<T: DeserializeOwned>(
    directory: impl AsRef<Path>,
) -> Result<Vec<(PathBuf, T)>, ConfigError>
Expand description

Read TOML files from a directory in deterministic path order.

Non-TOML entries are ignored. An empty directory produces an empty vector; callers decide whether an empty configuration set is valid for their domain.