config-file reads your configuration files and parse them automatically using their extension.
use config_file::FromConfigFile;
use serde::Deserialize;
#[derive(Deserialize)]
struct Config {
host: String,
}
let config = Config::from_config_file("/etc/myconfig.toml").unwrap();