Constantin Nickel
0cbd721e2c
implement From<toml::value::Table> for toml::Value
2019-04-08 23:58:16 +02:00
Alex Crichton
2011390ca8
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
1f99a6b979
Merge pull request #299 from ehuss/fix-float-suffix
...
Fix float with invalid suffix.
2019-04-08 09:09:07 -05:00
Eric Huss
c53ed53659
Fix float with invalid suffix.
2019-04-05 13:51:28 -07:00
Eric Huss
e121b2ec21
Add some missing tests, and sort some entries.
2019-04-05 13:49:57 -07:00
Eric Huss
166d8f08b3
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
eda57879e3
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
d1552ef0ee
Fix warnings for deprecated usages of trim_{left,right}_matches.
2019-04-02 09:35:28 -06:00
Erich Gubler
d27f89ac12
Make importing `toml_internal` macro unnecessary when using the `toml` macro
2019-04-02 09:32:51 -06:00
Alex Crichton
d729bf9c53
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
a92266db70
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
dbdcc9ccc4
Merge pull request #292 from omarabid/master
...
Add PartialEq to Toml::de
2019-03-11 11:34:30 -07:00
Abid Omar
fbc055771b
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
4fb12b493e
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
8fce90e9cd
Fix case sensitivity with T, Z, and E.
2019-02-19 10:59:42 -08:00
Alex Crichton
56f9afb4d2
Merge pull request #278 from Kerollmops/master
...
Add the preserve_order feature (rebased version)
2019-01-08 15:24:40 -08:00
Eric Huss
d0977ab1dd
Merge pull request #280 from alexcrichton/fix-duplicate
...
Fix disallowing duplicate table headers
2019-01-07 18:52:28 -08:00
Alex Crichton
7ee1c1b479
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
ad5ea1d904
Update build urls
2019-01-02 14:15:57 -08:00
Alex Crichton
600c6e58ec
Tweak travis config
2019-01-02 14:15:41 -08:00
Clément Renault
0372ba6925
Update the serde test-suite map! macro
2018-12-28 15:39:48 +01:00
Vincent Prouillet
9780cdd0af
test-suite is not tested with preserve_order
2018-12-28 14:42:55 +01:00
Vincent Prouillet
06f916cb60
Add the preserve_order feature
2018-12-28 14:42:55 +01:00
Alex Crichton
c1a369f447
Run `cargo fmt`
2018-12-17 17:45:35 -08:00
Alex Crichton
1ef180d06e
Bump to 0.4.10
2018-12-06 10:59:48 -08:00
Alex Crichton
f667495ae3
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
7d93f00ea0
Bump to 0.4.9
2018-11-21 09:55:42 -08:00
Alex Crichton
218f782a7b
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
9bb068c4f4
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
340c47b5f3
Indicate this is now supporting version 0.5 of TOML.
2018-11-21 09:41:57 -08:00
Eric Huss
2dc1913e02
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
df7ec3a4b6
Maintain backward compatibility with Rust 1.15, take 3.
2018-11-17 14:19:14 +13:00
Azriel Hoh
438157e662
Only validate table keys against fields when deserializing enum.
...
Issue #225
2018-11-17 13:37:24 +13:00
Azriel Hoh
45ab620a59
Maintain compatibility with Rust 1.15
...
Issue #225
2018-11-17 13:36:38 +13:00
Azriel Hoh
2907bd1953
Error when deserializing struct if encountering unknown fields.
...
Issue #225
2018-11-12 10:09:30 +13:00
Azriel Hoh
2c2d629812
Added ignored tests for deserializing enums from dotted table.
...
Issue #225
2018-11-12 09:00:47 +13:00
Azriel Hoh
00ee521940
Maintain compatibility with Rust 1.15
...
Issue #225
2018-11-10 11:10:34 +13:00
Azriel Hoh
fcc4a58617
Implemented deserialization for external enums.
...
Issue #225
2018-11-10 11:10:31 +13:00
Azriel Hoh
8fc8a6a5ca
Better error handling when parsing tuples.
...
Issue #225
2018-11-10 11:07:26 +13:00
Azriel Hoh
9ce37a6b02
Implemented enum tuple deserialization.
...
Issue #225
2018-11-10 11:07:23 +13:00
Azriel Hoh
b6559e9e8d
Added `NewType` variant to example.
2018-11-10 11:06:38 +13:00
Azriel Hoh
eff2ed3b51
Implement deserialization for unit and struct variants.
...
Issue #225
2018-11-10 11:06:34 +13:00
Alex Crichton
f610ef33f4
Merge pull request #271 from spease/allow-newtype-key
...
Allow newtype key
2018-10-29 09:57:55 -07:00
Alex Crichton
2a6d85b0dd
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
2fbcf8623a
Merge pull request #272 from hcpl/tuple-support
...
Support tuple Serde types for `Value`
2018-10-29 09:09:57 -07:00
hcpl
93c0eaf24e
Support tuple Serde types for `Value`
2018-10-28 12:36:40 +02:00
Steven Pease
88470e2452
Allow newtype key
2018-10-27 18:28:18 -07:00
Joey Hain
94c95bd15e
Allow whitespace after line ending backslash ( #162 )
2018-10-27 12:49:17 -07:00
Alex Crichton
3aec5a918a
Bump to 0.4.8
2018-10-01 10:05:56 -07:00
Alex Crichton
480457fdbd
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