Jordan Deitch
d3eedc52ba
convert toml error to std::io error
2019-08-01 20:43:05 -04:00
Andres Suarez
b09bb78352
Add line and column to all Errors
2019-07-30 13:35:08 -04:00
Andres Suarez
7875d03eeb
Add tests covering custom deserializers
2019-07-30 13:16:59 -04:00
Alex Crichton
45361e70b9
Merge pull request #313 from zertosh/show-col-in-errors
...
Show "column" in Error messages
2019-07-29 09:06:35 -05:00
Andres Suarez
8c1b49f66f
Show "column" in Error messages
2019-07-28 13:41:17 -04:00
Andres Suarez
8820659431
Fully expand error messages in tests
2019-07-28 12:58:26 -04:00
Eric Huss
0a3fd8ae62
Merge pull request #311 from Aaron1011/feature/update-serde
...
Bump Serde dependency to 1.0.97
2019-07-27 18:33:42 -07:00
Aaron Hill
c6571b048e
Bump Serde dependency to 1.0.97
...
toml-rs depends on some Serde types not present in Serde 1.0.0 (e.g
BorrowedStrDeserializer). By explicitly depending on a newever version,
we ensure compatibility with any crates using '-Z minimal-versions'
Note that we could probably depend on an older version of Serde, but I
didn't see much point in finding the exact minimum patch release that's
compatible with toml-rs
2019-07-27 20:43:58 -04:00
Alex Crichton
953940f82e
Bump to 0.5.1
2019-05-16 13:10:01 -07:00
Alex Crichton
e769341003
Merge pull request #308 from ehuss/edition-2018
...
Migrate to 2018 edition
2019-05-09 06:49:11 -07:00
Alex Crichton
895a039279
Merge pull request #307 from ehuss/remove-conditional-rustc
...
Remove rustc version checking.
2019-05-09 06:47:06 -07:00
Eric Huss
8f115c98d3
cargo fmt
2019-05-08 17:45:39 -07:00
Eric Huss
1b062a9bac
Remove rustc version checking.
...
This is no longer necessary, as <1.20 is no longer supported.
2019-05-08 17:39:18 -07:00
Eric Huss
0737f0b27a
2018 edition idioms.
2019-05-08 17:37:38 -07:00
Eric Huss
68fd59c78d
Migrate to 2018 edition.
2019-05-08 12:12:14 -07:00
Eric Huss
9842d61325
Merge pull request #305 from ehuss/0.5-version
...
Bump html_root_url version.
2019-04-25 11:22:29 -07:00
Eric Huss
10fb80090c
Bump html_root_url version.
2019-04-25 11:15:42 -07:00
Alex Crichton
a88675ebda
Merge pull request #304 from felixrabe/patch-1
...
README.md: `0.4` -> `0.5`
2019-04-25 08:27:12 -07:00
Felix Rabe
531259cf72
README.md: 0.4
-> 0.5
2019-04-24 21:37:54 +02:00
Alex Crichton
d37f25714d
Merge pull request #301 from nickelc/from_table
...
implement From<toml::value::Table> for toml::Value
2019-04-09 09:07:45 -05:00
Constantin Nickel
a622bd414c
implement From<toml::value::Table> for toml::Value
2019-04-08 23:58:16 +02:00
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