2014-08-03 23:30:30 -05:00
|
|
|
# toml-rs
|
|
|
|
|
2019-01-02 16:15:57 -06:00
|
|
|
[![Build Status](https://travis-ci.com/alexcrichton/toml-rs.svg?branch=master)](https://travis-ci.com/alexcrichton/toml-rs)
|
2015-07-10 17:10:57 -05:00
|
|
|
[![Coverage Status](https://coveralls.io/repos/alexcrichton/toml-rs/badge.svg?branch=master&service=github)](https://coveralls.io/github/alexcrichton/toml-rs?branch=master)
|
2017-01-27 19:04:31 -06:00
|
|
|
[![Latest Version](https://img.shields.io/crates/v/toml.svg)](https://crates.io/crates/toml)
|
2017-04-05 13:17:24 -05:00
|
|
|
[![Documentation](https://docs.rs/toml/badge.svg)](https://docs.rs/toml)
|
2014-08-03 23:30:30 -05:00
|
|
|
|
2017-02-08 23:27:28 -06:00
|
|
|
A [TOML][toml] decoder and encoder for Rust. This library is currently compliant
|
2018-11-21 11:41:57 -06:00
|
|
|
with the v0.5.0 version of TOML. This library will also likely continue to stay
|
2017-02-08 23:27:28 -06:00
|
|
|
up to date with the TOML specification as changes happen.
|
2014-08-03 23:30:30 -05:00
|
|
|
|
2015-02-13 20:21:50 -06:00
|
|
|
[toml]: https://github.com/toml-lang/toml
|
|
|
|
|
2014-08-03 23:30:30 -05:00
|
|
|
```toml
|
|
|
|
# Cargo.toml
|
2015-02-03 00:55:50 -06:00
|
|
|
[dependencies]
|
2019-04-24 14:37:54 -05:00
|
|
|
toml = "0.5"
|
2014-08-03 23:30:30 -05:00
|
|
|
```
|
|
|
|
|
2017-02-08 23:27:28 -06:00
|
|
|
This crate also supports serialization/deserialization through the
|
2017-02-12 20:00:47 -06:00
|
|
|
[serde](https://serde.rs) crate on crates.io. Currently the older `rustc-serialize`
|
2017-02-08 23:27:28 -06:00
|
|
|
crate is not supported in the 0.3+ series of the `toml` crate, but 0.2 can be
|
|
|
|
used for that support.
|
2017-01-09 19:37:05 -06:00
|
|
|
|
2014-09-03 13:20:27 -05:00
|
|
|
# License
|
|
|
|
|
2017-10-30 16:50:58 -05:00
|
|
|
This project is licensed under either of
|
2014-09-03 13:20:27 -05:00
|
|
|
|
2017-10-30 16:50:58 -05:00
|
|
|
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
|
|
|
http://opensource.org/licenses/MIT)
|
|
|
|
|
|
|
|
at your option.
|
|
|
|
|
|
|
|
### Contribution
|
|
|
|
|
|
|
|
Unless you explicitly state otherwise, any contribution intentionally submitted
|
2017-12-02 07:22:52 -06:00
|
|
|
for inclusion in toml-rs by you, as defined in the Apache-2.0 license, shall be
|
2017-10-30 16:50:58 -05:00
|
|
|
dual licensed as above, without any additional terms or conditions.
|