Commit graph

576 commits

Author SHA1 Message Date
Alex Crichton b9fbd5b6f7 Merge pull request #298 from ehuss/missing-tests
Add some missing tests, and sort some entries.
2019-04-08 09:09:27 -05:00
Alex Crichton b147fe3682 Merge pull request #299 from ehuss/fix-float-suffix
Fix float with invalid suffix.
2019-04-08 09:09:07 -05:00
Eric Huss 816b457c84 Fix float with invalid suffix. 2019-04-05 13:51:28 -07:00
Eric Huss 902e98cda1 Add some missing tests, and sort some entries. 2019-04-05 13:49:57 -07:00
Eric Huss 743cfcef05 Merge pull request #295 from ErichDonGubler/fix_warnings
Fix warnings for deprecated usages of trim_{left,right}_matches.
2019-04-02 10:50:33 -07:00
Eric Huss e17f0bba39 Merge pull request #296 from ErichDonGubler/toml_internal-stays-internal
Make importing `toml_internal` macro unnecessary when using the `toml` macro
2019-04-02 10:50:19 -07:00
Erich Gubler d34e734b39 Fix warnings for deprecated usages of trim_{left,right}_matches. 2019-04-02 09:35:28 -06:00
Erich Gubler a6071c7aac Make importing toml_internal macro unnecessary when using the toml macro 2019-04-02 09:32:51 -06:00
Alex Crichton 19ac1ea19c Merge pull request #294 from tmiasko/ml-delim
Fix parsing of repeated delimiters inside multi-line strings
2019-03-20 14:07:50 -05:00
Tomasz Miąsko a5046008e5 Fix parsing of repeated delimiters inside multi-line strings
The previous implementation of `read_string`, when looking for
delimiters ending the multi-line string and failing to find exactly
three in succession, always put a single delimiter back. This is
incorrect when exactly two delimiters are present.

Put back the correct number of delimiters depending on how many have
been already consumed from input.

The issue could be triggered only with `Owned` representation of
`MaybeString`, since otherwise `push` operation is no-op.
2019-03-20 17:58:14 +01:00
Eric Huss 1ba48019d7 Merge pull request #292 from omarabid/master
Add PartialEq to Toml::de
2019-03-11 11:34:30 -07:00
Abid Omar 861a7be7d4 Add PartialEq to Toml::de
Add PartialEq trait to Error, ErrorInner and ErrorKind.

Relevant issue: https://github.com/alexcrichton/toml-rs/issues/291
2019-03-11 18:38:50 +01:00
Alex Crichton 4a0a866fbd Merge pull request #290 from ehuss/fix-case-sensitivity
Fix case sensitivity with T, Z, and E.
2019-02-19 13:45:23 -06:00
Eric Huss b7493c9bef Fix case sensitivity with T, Z, and E. 2019-02-19 10:59:42 -08:00
Alex Crichton 7c969432ad Merge pull request #278 from Kerollmops/master
Add the preserve_order feature (rebased version)
2019-01-08 15:24:40 -08:00
Eric Huss 59d250e309 Merge pull request #280 from alexcrichton/fix-duplicate
Fix disallowing duplicate table headers
2019-01-07 18:52:28 -08:00
Alex Crichton 184d16b4a3 Fix disallowing duplicate table headers
This commit fixes #279 where a case of duplicate table headers slipped
through the cracks. This also adds an option to disable this new
validation to allow Cargo to preserve backwards compatibility.
2019-01-07 09:06:04 -08:00
Alex Crichton ffa27fe817 Update build urls 2019-01-02 14:15:57 -08:00
Alex Crichton f07dbc18e0 Tweak travis config 2019-01-02 14:15:41 -08:00
Clément Renault b66f6108d3 Update the serde test-suite map! macro 2018-12-28 15:39:48 +01:00
Vincent Prouillet 8b1cff0fce test-suite is not tested with preserve_order 2018-12-28 14:42:55 +01:00
Vincent Prouillet 8621ab27ae Add the preserve_order feature 2018-12-28 14:42:55 +01:00
Alex Crichton cbfc4e18f8 Run cargo fmt 2018-12-17 17:45:35 -08:00
Alex Crichton b2013e4548 Bump to 0.4.10 2018-12-06 10:59:48 -08:00
Alex Crichton 7845df9ff9 Merge pull request #264 from azriel91/feature/225/externally-tagged-enums
Issue 255: Externally tagged enum deserialization
2018-11-28 09:50:38 -06:00
Alex Crichton d289e87c61 Bump to 0.4.9 2018-11-21 09:55:42 -08:00
Alex Crichton 88be3b70a7 Merge pull request #276 from ehuss/fix-version
Indicate this is now supporting version 0.5 of TOML.
2018-11-21 11:55:29 -06:00
Alex Crichton c1c0cb2d1b Merge pull request #275 from ehuss/fix-datetime-trailing-space
Fix trailing space after date.
2018-11-21 11:55:03 -06:00
Eric Huss 57e78ee3bc Indicate this is now supporting version 0.5 of TOML. 2018-11-21 09:41:57 -08:00
Eric Huss b21dd8cf05 Fix trailing space after date.
The space between date and time was being eagerly skipped when it shouldn't.
2018-11-21 09:35:50 -08:00
Azriel Hoh cd6373a9ab Maintain backward compatibility with Rust 1.15, take 3. 2018-11-17 14:19:14 +13:00
Azriel Hoh 752bf0d4a1 Only validate table keys against fields when deserializing enum.
Issue #225
2018-11-17 13:37:24 +13:00
Azriel Hoh 5bcf6f7cb6 Maintain compatibility with Rust 1.15
Issue #225
2018-11-17 13:36:38 +13:00
Azriel Hoh 1656e2e51d Error when deserializing struct if encountering unknown fields.
Issue #225
2018-11-12 10:09:30 +13:00
Azriel Hoh 7862f04d08 Added ignored tests for deserializing enums from dotted table.
Issue #225
2018-11-12 09:00:47 +13:00
Azriel Hoh a0295b3308 Maintain compatibility with Rust 1.15
Issue #225
2018-11-10 11:10:34 +13:00
Azriel Hoh a4928a47a8 Implemented deserialization for external enums.
Issue #225
2018-11-10 11:10:31 +13:00
Azriel Hoh 7777c1452f Better error handling when parsing tuples.
Issue #225
2018-11-10 11:07:26 +13:00
Azriel Hoh 4f28c2f639 Implemented enum tuple deserialization.
Issue #225
2018-11-10 11:07:23 +13:00
Azriel Hoh 9a69c17a4e Added NewType variant to example. 2018-11-10 11:06:38 +13:00
Azriel Hoh f5d14af5a6 Implement deserialization for unit and struct variants.
Issue #225
2018-11-10 11:06:34 +13:00
Alex Crichton 80d2cf081d Merge pull request #271 from spease/allow-newtype-key
Allow newtype key
2018-10-29 09:57:55 -07:00
Alex Crichton 14f8934bef Merge pull request #268 from jmhain/allow-ws-after-bs
Allow whitespace after line ending backslash (#162)
2018-10-29 09:47:56 -07:00
Alex Crichton 2623d4c60d Merge pull request #272 from hcpl/tuple-support
Support tuple Serde types for `Value`
2018-10-29 09:09:57 -07:00
hcpl 5636a7430e Support tuple Serde types for Value 2018-10-28 12:36:40 +02:00
Steven Pease d75c9ccd00 Allow newtype key 2018-10-27 18:28:18 -07:00
Joey Hain a9fb3bf188 Allow whitespace after line ending backslash (#162) 2018-10-27 12:49:17 -07:00
Alex Crichton f07ba88de4 Bump to 0.4.8 2018-10-01 10:05:56 -07:00
Alex Crichton ae5595396f Merge pull request #263 from Deewiant/final-quote-fix
Avoid panic on pretty string ending in single quote
2018-10-01 10:05:36 -07:00
Matti Niemenmaa dce343e926 Avoid panic on pretty string ending in single quote
Fixes #262.
2018-10-01 11:58:57 +03:00