Eric Huss
1356367d14
Bump to 0.5.9
2022-04-14 16:54:23 -07:00
Harvey Hunt
b0035e905c
examples: Allow dead code ( #450 )
...
The examples deny warnings, however a couple of examples deserialise TOML into
structs. The fields of these structs are never read, which breaks cargo test
in nightly mode.
Allow dead code to fix the CI build.
2021-11-09 13:28:06 -06:00
David James
de1b37b0f8
Make datetime.rs structs and fields public #431 ( #439 )
...
* Make datetime.rs structs and fields public #431
* Make {Date, Time, Offset} public #431 #439
* rustfmt: alphabetize pub use declaration
* Add docs for Datetime, Date, Time, Offset
* Correct doc for Offset, make others consistent
Co-authored-by: David James <davidcjames@gmail.com>
2021-08-20 09:32:50 -05:00
Squirrel
55aefbd137
Use entry api to remove a lookup in deserialisation loop ( #438 )
...
* Use entry api to remove a lookup in a loop
* cargo fmt
2021-08-10 11:25:38 -05:00
dependabot-preview[bot]
ed3309f0e4
Upgrade to GitHub-native Dependabot ( #427 )
...
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-04-29 14:35:13 -05:00
Eric Huss
d31787fa3b
Merge pull request #373 from mgsloan/allow-empty-table-keys
...
Allow empty table keys
2021-04-26 13:32:09 -07:00
Eric Huss
fed4022c88
Fix serialization of -0.0. ( #426 )
2021-04-26 09:05:28 -05:00
Eric Huss
2c08988a44
Merge pull request #417 from hone/patch-1
...
Fix comment typo
2021-02-06 10:43:17 -08:00
Terence Lee
bcf306b269
Fix comment typo
2021-02-06 11:36:07 -06:00
Eric Huss
c4d5fffa3f
Merge pull request #414 from ehuss/version-bump
...
Bump to 0.5.8
2020-12-18 09:35:48 -08:00
Eric Huss
7846e82220
Bump to 0.5.8
2020-12-18 09:32:46 -08:00
Eric Huss
6f007bf9c7
Merge pull request #409 from Stupremee/patch-1
...
Show `Spanned` and `Datetime` in docs
2020-11-13 13:06:12 -08:00
Stu
307c5cc3b6
Remove no_inline
from value re-exports
2020-11-13 20:45:29 +01:00
Stu
4d7c606a75
Remove no_inline
from Spanned
import
2020-11-13 20:42:06 +01:00
Alex Crichton
87de904448
Bump to 0.5.7
2020-10-11 10:31:27 -07:00
Alex Tokarev
39dcf1384c
Improve error message when parsing unquoted string ( #385 )
...
* Improve error message when parsing unquoted string
* Remove conversion to lowercase in parse_keylike()
Converting keys to lowercase goes against
TOML specification for floats.
* Change error message for unquoted string
2020-10-11 12:30:55 -05:00
pyfisch
af05f537d8
Allow delimiter quotes at the end of multiline strings ( #393 )
...
TOML allows (unlike many other formats) up to 2
additonal quotes that are part of the string:
basic = """2 extra quotes -->"""""
literal = '''here too ''''
Changed in TOML v1.0.0-rc.1
See also #392
2020-05-28 10:39:55 -05:00
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
6de25e7cc8
Allow empty table keys
...
Quoting 68076ffc6d (user-content-keys)
> A bare key must be non-empty, but an empty quoted key is allowed (though discouraged).
See also the discussion in https://github.com/toml-lang/toml/issues/432
2020-01-31 00:17:55 -07: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