config-file

API Docs Downloads

Read and parse configuration file automatically

config-file reads your configuration files and parse them automatically using their extension.

Features

Examples

```rust use config_file::FromConfigFile; use serde::Deserialize;

[derive(Deserialize)]

struct Config { host: String, }

let config = Config::fromconfigfile("/etc/myconfig.toml").unwrap(); ```