My fork of toml-rs with no_std support.
Find a file
rhysd 935d95ce4f Fix multi-line strings are not allowed for key
In spec https://github.com/toml-lang/toml#keys

Quoted keys are clarified as

> he exact same rules as either basic strings or literal strings

TOML clearly distinguishes basic string and multi-line basic string
(literal string is also).

https://github.com/toml-lang/toml#string

So table key and quoted key should not allow multi-line basic string
and multi-line literal string.

ABNF definition also describes that.

https://github.com/toml-lang/toml/blob/master/toml.abnf

```
string = ml-basic-string / basic-string / ml-literal-string / literal-string

quoted-key = basic-string / literal-string
```

`string` contains `ml-*` but `quoted-key` doesn't.
2018-09-25 16:33:52 +09:00
examples Fix a number of compile warnings 2017-08-28 07:40:48 -07:00
src Fix multi-line strings are not allowed for key 2018-09-25 16:33:52 +09:00
test-suite Fix multi-line strings are not allowed for key 2018-09-25 16:33:52 +09:00
.gitignore Make serde-tests a standalone crate 2015-08-13 09:39:49 -07:00
.travis.yml Move tests into their own crate 2017-11-12 19:33:11 -08:00
Cargo.toml Bump to 0.4.6 2018-05-24 07:14:48 -07:00
LICENSE-APACHE Add a dual MIT/Apache license 2014-09-03 11:20:27 -07:00
LICENSE-MIT Add a dual MIT/Apache license 2014-09-03 11:20:27 -07:00
README.md Serde -> toml-rs 2017-12-02 14:22:52 +01:00

toml-rs

Build Status Coverage Status Latest Version Documentation

A TOML decoder and encoder for Rust. This library is currently compliant with the v0.4.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.4"

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.