Expand description
§Configuring your dependency
toml-config
can be configured to use rustc_serialize
or serde
§Using toml-config
with rustc_serialize
By default toml-config
uses rustc_serialize
, so just add the dependency in Cargo.toml normally:
[dependencies]
toml-config = "0.2"
§Using toml-config
with serde
To use toml-config with serde
, opt out from the default features and enable the serde-serialization
feature:
[dependencies.toml-config]
version = "0.2"
default-features = false
features = ["serde-serialization"]
Structs§
- Config
Factory - Implements helper functions for loading TOML files into a structure