#encoding

toml

A native Rust encoder and decoder of TOML-formatted files and streams. Provides implementations of the standard Serialize/Deserialize traits for TOML data to facilitate deserializing and serializing Rust structures.

52 releases

✓ Uses Rust 2018 edition

0.5.6 Jan 16, 2020
0.5.5 Nov 1, 2019
0.5.4 Oct 28, 2019
0.5.1 May 16, 2019
0.1.3 Nov 22, 2014

#8 in Encoding

Download history 107112/week @ 2019-12-17 70001/week @ 2019-12-24 79808/week @ 2019-12-31 121958/week @ 2020-01-07 143767/week @ 2020-01-14 158416/week @ 2020-01-21 132362/week @ 2020-01-28 125957/week @ 2020-02-04 113644/week @ 2020-02-11 110667/week @ 2020-02-18 111589/week @ 2020-02-25 116141/week @ 2020-03-03 117767/week @ 2020-03-10 118002/week @ 2020-03-17 117967/week @ 2020-03-24 105147/week @ 2020-03-31

494,173 downloads per month
Used in 2,560 crates (1,033 directly)

MIT/Apache

245KB
6K SLoC

toml-rs

Latest Version Documentation

A TOML decoder and encoder for Rust. This library is currently compliant with the v0.5.0 version of TOML. This library will also likely continue to stay up to date with the TOML specification as changes happen.

# Cargo.toml
[dependencies]
toml = "0.5"

This crate also supports serialization/deserialization through the serde crate on crates.io. Currently the older rustc-serialize crate is not supported in the 0.3+ series of the toml crate, but 0.2 can be used for that support.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in toml-rs by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~180–330KB