5 releases (3 breaking)

Uses old Rust 2015

0.4.0 Jul 23, 2016
0.3.0 Apr 1, 2016
0.2.0 Feb 21, 2016
0.1.1 Feb 17, 2016
0.1.0 Jan 31, 2016

#48 in #config-toml


Used in 3 crates

MIT license

14KB
195 lines

toml-config

Loads and decodes TOML files into Rust structures

Crates.io

Documentation


lib.rs:

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"]

Dependencies

~520–710KB
~15K SLoC