Bram Geron
b84615a24c
Apply some Clippy suggestions. ( #378 )
2020-02-25 12:08:29 -06:00
Bram Geron
f12a16274b
Rustdoc: Add links. Show all reexports as reexports. ( #377 )
...
* Rustdoc: Add links. Show all reexports as reexports.
* Reformat.
2020-02-25 12:07:55 -06:00
Michael Sloan
cd96581730
Fix roundtripping of \u001f and \u007f in toml string literals ( #372 )
2020-01-30 08:55:36 +01:00
Eric Huss
f022d042dd
Merge pull request #370 from zeenix/fix-typo
...
Fix a small typo in docs
2020-01-19 13:26:06 -08:00
Zeeshan Ali
66728e147f
Fix a small typo in docs
2020-01-19 21:01:22 +01:00
Alex Crichton
2d0406e127
Bump to 0.5.6
2020-01-16 09:15:46 -08:00
Michael Sloan
13107f621b
Fix a couple errors in DateStrEmitter ( #368 )
2020-01-15 10:58:12 -06:00
Eric Huss
96cb061bec
Merge pull request #365 from AnderEnder/remove-deprecated-error-description
...
Remove deprecated Error::description
2019-12-22 09:46:36 -08:00
Andrii Radyk
dea4b79a71
remove deprecated Error::description
2019-12-22 00:06:00 +01:00
daubaris
c822128a02
Mixed type arrays ( #358 )
...
* Added support of mixed-type arrays
* Add tests cases
* Replaced &'static str type for type_ and created a new enum instead
* Restored ArrayMixedType
2019-11-22 10:28:29 -06:00
Alex Crichton
3e9f8cbd83
Bump to 0.5.5
2019-11-01 07:58:38 -07:00
Maxim Vorobjov
9e3cd1d431
replace copied wit filter_map for rustc 1.35 compatibility ( #354 )
2019-11-01 09:58:09 -05:00
est31
e22c19436c
Replace the test added by #349 with a bench ( #351 )
...
CI environments can be noisy and while the test worked great
locally on my machine, it didn't on the CI environment.
This replaces the test with a (manually tracked) benchmark.
As per https://github.com/alexcrichton/toml-rs/pull/349#issuecomment-546998173
2019-10-29 09:10:15 -05:00
Tshepang Lekhonkhobe
10a46a1c4a
update ( #352 )
2019-10-29 09:01:41 -05:00
Alex Crichton
5bfb7474e7
Bump to 0.5.4
2019-10-28 08:05:55 -07:00
est31
34ef67bee2
Decrease deserialization complexity from quadratic to linear ( #349 )
...
* Speed up array code
* Speed up map code too
Also add regression test
* Use more obvious closure notation
* Document the builder functions
2019-10-28 10:05:13 -05:00
est31
52586279ce
Support for dotted table spans ( #340 )
...
* "Support" spans for maps
In toml you can declare maps via {} and via [name].
We can't obtain spans for [] maps but at least we
can emit fake spans to make SpannedValue work.
We also add a regression test.
* Don't regress the inline table case
* Also support arrays
2019-10-28 09:01:23 -05:00
Alex Crichton
bf1c4ce44f
Switch from linked-hash-map to indexmap
...
Follow the footsteps of serde_json!
Closes #348
2019-10-25 12:08:28 -07:00
est31
e89d255cbf
Spanned: impl PartialEq, Eq, Hash, PartialOrd, Ord in terms of the value ( #344 )
...
* Spanned: impl PartialEq, Eq, Hash, PartialOrd, Ord in terms of the value
This is because we want to be able to index into HashMap<Spanned<String>, T>
with a dummy span and get results where only the content has to match.
* Add Borrow impl
* Add tests
2019-10-25 14:05:31 -05:00
Linda_pp
112fb15498
Remove outdated Travis CI badge ( #346 )
2019-10-16 09:36:27 -05:00
Kyle Clemens
b517e36d8f
feat: support tabs in basic strings ( #343 )
...
Close #310 .
2019-10-15 08:45:17 -05:00
Guillaume Fraux
83147d3530
get_mut should return a mutable reference ( #338 )
2019-10-03 10:29:50 -05:00
Sergey "Shnatsel" Davidoff
ef8cca002a
Forbid unsafe code ( #332 )
...
* Forbid unsafe code
* Add badge advertising that unsafe code is forbidden
* Revert "Add badge advertising that unsafe code is forbidden"
This reverts commit e8d35d20d016a341d37969b975463588d3143528.
* Comment on #![forbid(unsafe_code)]
* Run rustfmt
2019-09-30 09:57:16 -05:00
est31
12db6aa93f
Support deserializing spanned keys ( #333 )
...
* Store key spans in the deserializer
* Support deserializing spanned keys
* Store key spans of the table header as well
* Support nested table key spans as well
2019-09-16 16:32:45 -05:00
est31
55ca6c5e30
Remove redundant #[doc(hidden)] attributes ( #331 )
2019-09-09 13:04:47 -05:00
James Kay
d083e58357
Nested dotted-table enums ( #329 )
...
Add support for deserializing enums from nested dotted tables.
2019-09-05 09:18:26 -05:00
est31
5fef3914cf
Suppport deserialization of Spanned<> at the top level ( #328 )
2019-09-05 08:38:54 -05:00
Erich Gubler
57aea7dfad
Make de::Error
Eq
in addition to current PartialEq
( #330 )
...
Not sure why this wasn't implemented before, since `ser::Error` has implemented `PartialEq` and `Eq` as of PR #144 .
2019-09-04 18:44:32 -05:00
Alex Crichton
37e8b2274c
Work around a rustfmt bug
2019-08-28 08:02:08 -07:00
Alex Crichton
ee8839034b
wut
2019-08-28 08:01:07 -07:00
Alex Crichton
ccc659b254
More rustfmt
2019-08-28 07:59:44 -07:00
Alex Crichton
53119746dd
Remove outdated README badges
2019-08-28 07:59:20 -07:00
Alex Crichton
d8309379ed
Run rustfmt
2019-08-28 07:58:15 -07:00
Alex Crichton
16d3273c8c
Switch to github actions for CI
2019-08-28 07:57:58 -07:00
Eric Huss
f822f4661b
Allow zero-prefixed float exponents. ( #322 )
2019-08-23 09:55:15 -07:00
Alex Crichton
9d7890a6d0
Merge pull request #321 from NickHackman/fix-clippy-warnings-and-errors
...
Fix clippy warnings and errors
2019-08-20 14:51:26 -05:00
Nick Hackman
c18d474acf
Propogate write! errors to ser::Error
...
std::fmt::Errors are now converted to ser::Errors via ser::Error::custom
2019-08-20 12:59:28 -04:00
Nick Hackman
9f25cfa17b
Fixed Clippy warning of long return type
...
Created an alias named TablePair being a (Cow<'a, str>, Value<'a>)
2019-08-18 21:07:23 -04:00
Nick Hackman
6699b5be03
Potential Solution to drop clippy errors
...
Calling the write!, the result that it returns doesn't matter or wasn't
deemed as important and was dropped before. This was just removed and
then the unused Result is ignored via clippy attribute. This is a
plausible solution to get past the Clippy Error, but others may be more
ideal.
2019-08-18 20:23:40 -04:00
Nick Hackman
8b88c96cfc
Removed all warnings besides two
...
Majority of warnings removed via RustFix
Two remain one being a long return type and another being a name
suggestion from Clippy `to_owned` for MaybeString
2019-08-14 23:05:30 -04:00
Eric Huss
f5e621c048
Bump to 0.5.3
2019-08-13 14:53:04 -07:00
Eric Huss
03c4f5349c
Merge pull request #320 from ehuss/crlf-error-index
...
Fix error line/column when using CRLF line endings.
2019-08-13 14:51:03 -07:00
Eric Huss
514b8ca8f2
Fix error line/column when using CRLF line endings.
2019-08-13 13:48:54 -07:00
Alex Crichton
64d1385946
Merge pull request #319 from NickHackman/modernize-enum-discriminant-comparison
...
Simplified Logic when comparing discriminants
2019-08-13 14:36:26 -05:00
Nick Hackman
64e2f4742f
Simplified Logic when comparing discriminants
...
Removed matches that were used to compare Enum variants for equality in
favor of using discriminant from https://doc.rust-lang.org/std/mem/fn.discriminant.html
introduced in Rust 1.21.0
2019-08-13 14:13:01 -04:00
Alex Crichton
2b51f841bc
Bump to 0.5.2
2019-08-13 07:55:09 -07:00
Alex Crichton
9cf3f2ddd1
Merge pull request #318 from JustAPerson/patch-1
...
Derive Clone+PartialEq for Spanned
2019-08-13 09:38:25 -05:00
Jason Priest
4018ebc65a
Derive Clone+PartialEq for Spanned
...
Should any other traits be derived?
2019-08-12 21:27:26 -05:00
Alex Crichton
fd39bc7412
Run cargo fmt
2019-08-12 13:50:59 -07:00
Alex Crichton
59c0d52600
Fix a bad merge
2019-08-12 13:50:44 -07:00