#config #toml #decoder

toml-config

Loads and decodes TOML files into structures

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

#100 in #decoder

Download history 23/week @ 2023-07-27 16/week @ 2023-08-03 20/week @ 2023-08-10 24/week @ 2023-08-17 22/week @ 2023-08-24 13/week @ 2023-08-31 34/week @ 2023-09-07 25/week @ 2023-09-14 9/week @ 2023-09-21 24/week @ 2023-09-28 19/week @ 2023-10-05 19/week @ 2023-10-12 29/week @ 2023-10-19 33/week @ 2023-10-26 28/week @ 2023-11-02 27/week @ 2023-11-09

119 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

~495–680KB
~15K SLoC