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

#50 in #config-toml

Download history 5/week @ 2024-03-10 2/week @ 2024-03-17 43/week @ 2024-03-31 1/week @ 2024-04-07 1/week @ 2024-04-21 2/week @ 2024-05-12 1/week @ 2024-05-26

61 downloads per month
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