863 Commits

Author SHA1 Message Date
David Tolnay
b6119e4c1e
Merge pull request #600 from deankarn/master
Add append to Map
2020-01-20 20:28:09 -08:00
David Tolnay
6434761d77
Merge pull request #605 from Xanewok/patch-1
Update MSRV to 1.30 in README.md
2020-01-20 14:30:26 -08:00
Igor Matuszewski
bbfdaf04cf
Update MSRV to 1.30 in README.md
As it seems to be the case as of latest commit (4b8380261b)
2020-01-20 20:12:04 +01:00
Dean Karn
5930359ec1 Make compatible with older veersions of rust
reworked to use std::mem::replace instead of std::mem::take which was
introduced in v1.40.0 which is just a wrapper for replace.
2020-01-07 09:00:14 -08:00
Dean Karn
a240606c32 Add append to Map
This adds append to the Map type. There are two underlying map type ATM:
- BTreeMap
- IndexMap

For BTreeMap this exposes the existing append method which has some nice
perf benefits vs doing a for on the other map and insert on each
element.

For IndexMap there is no existing append method and so as a fallback and
convenience there is a for over the elements and insert simulating an
append.
2020-01-07 08:16:08 -08:00
David Tolnay
4b8380261b
Drop support for rustc <1.30 2019-12-26 21:41:08 -05:00
David Tolnay
a59d451809
Provide source method for Error, to allow downcasting cause 2019-12-26 21:40:43 -05:00
David Tolnay
38a73b32c1
Drop support for rustc <1.27 2019-12-26 21:38:11 -05:00
David Tolnay
1de567b3ff
Remove deprecated description() method from Error 2019-12-26 21:29:41 -05:00
David Tolnay
0f12393325
Opt in to experimental trybuild diffs 2019-12-25 17:41:36 -05:00
David Tolnay
c44a7aa3fb
Remove unneeded lifetimes from pointer signatures 2019-12-18 10:11:49 -08:00
David Tolnay
85dccefa2a
Merge pull request #595 from x3ro/doc/pointer_mut_map_example
Add example for how to update value if one exists
2019-12-18 10:07:01 -08:00
Lucas Jenss
7d5115d6c4 Add example for how to update value if one exists 2019-12-18 11:50:04 +01:00
David Tolnay
245afb69a5
Ignore missing_errors_doc pedantic lint 2019-12-15 21:03:32 -08:00
David Tolnay
1977e69349
Release 1.0.44 v1.0.44 2019-12-04 12:27:04 -08:00
David Tolnay
9f13db7b1c
Merge pull request 591 from erickt/value-into-deserializer 2019-12-04 12:25:49 -08:00
Erick Tryzelaar
4ae13a5393 Implement IntoDeserializer for Value
This allows users to deserialize from types like `HashMap<String, Value>`.
2019-12-04 10:41:10 -08:00
David Tolnay
f7a4da003c
Release 1.0.43 v1.0.43 2019-12-04 02:41:50 -08:00
David Tolnay
76b23665cc
Merge pull request #590 from nlordell/bump_indexmap_version
Fix Required Minimum `indexmap` Version
2019-12-04 02:41:13 -08:00
Nicholas Rodrigues Lordello
19ba7be970 fix required minimum indexmap version 2019-12-04 11:31:54 +01:00
David Tolnay
f0471e6171
Release 1.0.42 v1.0.42 2019-11-24 14:29:20 -08:00
David Tolnay
bf8cc6642f
Merge pull request #585 from Nilix007/add_from_unit_for_value
Add `impl From<()> for Value`
2019-11-24 14:27:53 -08:00
Felix Wiedemann
ff5a59ccad Add impl From<()> for Value 2019-11-19 20:47:14 +01:00
David Tolnay
7dda8235b7
Merge pull request #580 from andrisak/docs_read_without_blocking_eof
Fix for Document how to deserialize from a prefix of an io::Read with…
2019-10-31 10:37:27 -07:00
andrisak
2065227366 Added missing fake_main #522 2019-10-31 10:37:11 +01:00
andrisak
3a5aba3ee1 Fix for Document how to deserialize from a prefix of an io::Read without blocking until EOF #522 2019-10-31 10:20:23 +01:00
David Tolnay
0c728204ef
Ignore must_use_candidate pedantic lint 2019-10-17 10:57:53 -04:00
David Tolnay
265f1cae42
Upgrade to rustversion 1.0 2019-10-11 11:38:15 -07:00
David Tolnay
b63ad14734
Address needless_doctest_main lint 2019-10-08 21:10:44 -07:00
David Tolnay
08b0cde052
Release 1.0.41 v1.0.41 2019-10-03 16:43:18 -04:00
David Tolnay
4c88bef3a9
Document that you can't deserialize &str from reader 2019-10-03 16:41:58 -04:00
David Tolnay
5bc17fa49a
Remove try! macro from tests 2019-10-02 21:13:55 -04:00
David Tolnay
fbd143408a
Merge pull request #571 from yankuu/patch-1
Minor typo in doc
2019-09-30 15:55:02 -04:00
yankuu
f1682351c9
Minor typo in doc 2019-09-30 15:42:03 +08:00
David Tolnay
05f6489e3f
Ignore too_many_lines lint 2019-09-14 00:00:55 -07:00
David Tolnay
b3d33feaf7
Use swap_remove on IndexMap
Plain remove is deprecated.
2019-09-08 20:20:10 -07:00
David Tolnay
d941bfa4a1
Format with rustfmt 2019-08-19 2019-09-07 17:26:09 -07:00
David Tolnay
684bf8875e
Include tests crate in workspace 2019-08-17 13:21:20 -07:00
David Tolnay
7613c0443f
Enable testing cargo build on old compilers 2019-08-17 13:20:05 -07:00
David Tolnay
cc59b26045
Work around rust-lang/cargo#4664
Our dev-dependency on trybuild enables serde's "derive" feature, which
we don't want affecting `cargo build`.
2019-08-17 13:15:57 -07:00
David Tolnay
e3a2c3af66
Switch to rustversion 2019-07-07 21:13:29 -07:00
David Tolnay
87776aca6c
Merge pull request #544 from est31/master
Add note about issue 160 to from_reader function
2019-06-30 19:58:53 -07:00
David Tolnay
efe3dc184c
Release 1.0.40 v1.0.40 2019-06-30 11:03:42 -07:00
David Tolnay
b415671e70
Move raw_value feature note above the example code
Closes #529.
2019-06-30 11:01:41 -07:00
David Tolnay
8259b11f5f
Suppress integer_division pedantic lint 2019-06-14 23:59:40 -07:00
David Tolnay
10132f800f
Update to ryu 1.0 2019-06-11 14:43:49 -07:00
David Tolnay
607de4d8ec
Ignore old inclusive range syntax to support old compilers 2019-06-01 23:07:57 -07:00
David Tolnay
c15bec566e
Suppress a new pedantic lint 2019-06-01 23:07:07 -07:00
David Tolnay
c4fb4f3996
Ignore bare_trait_objects lint to support old compilers 2019-05-31 17:01:22 -07:00
est31
db068f4844 Add note about issue 160 to from_reader function 2019-05-30 06:10:28 +02:00