David Tolnay
8c5d5e45d4
Release 1.0.13
v1.0.13
2018-03-21 12:11:17 -07:00
Alexander Regueiro
31bba4b5a1
Arbitrary-precision numerics support ( #416 )
...
Added support for arbitrary-precision numerics, in a similar way that the toml crate does for date-times (using an internal special struct).
2018-03-21 12:09:36 -07:00
Oliver Schneider
21d623d7bb
Merge pull request #425 from mtn/positive_patch
...
Replace relevant instance of "pos" with "positive"
2018-03-20 08:25:41 +01:00
Michael Noronha
9f540bbf8e
Replace relevant instance of "pos" with "positive"
...
Addresses issue #420
2018-03-19 22:07:18 -04:00
David Tolnay
cc8e0b5dce
Release 1.0.12
v1.0.12
2018-03-18 22:36:54 -07:00
David Tolnay
833234bc24
Merge pull request #424 from Eijebong/itoa
...
Update itoa and bump version
2018-03-18 22:35:49 -07:00
Bastien Orivel
96225b0fbc
Update itoa to 0.4
2018-03-18 15:42:58 +01:00
David Tolnay
92c23fb828
Ignore unreadable_literal lint in tests
2018-03-17 12:56:05 -07:00
David Tolnay
c58b5201e1
Update ui tests for nightly-2018-03-16
2018-03-17 12:50:08 -07:00
David Tolnay
42a5d689ca
Release 1.0.11
v1.0.11
2018-03-10 20:14:37 -08:00
David Tolnay
8ccbfe4620
Merge pull request #421 from dmizuk/value-take
...
Add `Value::take` method
2018-03-10 20:13:37 -08:00
Daiki Mizukami
5b605b204d
Add Value::take method
2018-03-11 11:28:59 +09:00
David Tolnay
aa63c9302d
Update ui tests for nightly-2018-03-03
2018-03-03 19:50:31 -08:00
David Tolnay
f2c385fed7
Release 1.0.10
v1.0.10
2018-02-27 17:04:04 -08:00
David Tolnay
9de293da39
Merge pull request #414 from boxofrox/fix/issue-364
...
Improve error when json strings contain control characters
2018-02-27 17:03:14 -08:00
Justin Charette
cc6304ee06
Improve error when json strings contain control characters
...
Signed-off-by: Justin Charette <charetjc@gmail.com>
2018-02-27 19:23:23 -05:00
David Tolnay
c6db606357
Ignore redundant_field_names lint
2018-02-27 10:55:12 -08:00
David Tolnay
240c6fec53
Update ui tests for nightly-2018-02-26
2018-02-27 10:52:30 -08:00
David Tolnay
2a4e5a0f5c
Merge pull request #415 from kraai/kraai-patch-1
...
Simplify the implementation of str's index_or_insert
2018-02-27 10:37:15 -08:00
Matt Kraai
ead6d6e6e9
Simplify the implementation of str's index_or_insert
2018-02-27 09:35:16 -08:00
David Tolnay
d78b23548e
Note that eager_json depends on private API
2018-02-15 10:47:35 -08:00
David Tolnay
4f6229315c
Merge pull request #411 from cuviper/num-traits-0.2
...
Update to num-traits 0.2 with no_std
2018-02-09 20:05:11 -08:00
Josh Stone
9a051c120a
Update to num-traits 0.2 with no_std
...
It now has a `std` feature, and uses `#![no_std]` otherwise.
cc #362
2018-02-09 18:12:15 -08:00
David Tolnay
3ac0362e33
Ignore a new clippy lint
2018-02-05 10:27:50 -08:00
David Tolnay
fee33bed16
Merge pull request #406 from H2CO3/remove-copy-and-cleanup
...
Remove copy and cleanup
2018-01-21 00:46:04 -08:00
Árpád Goretity
4864795d5c
Simplify impl FromIterator for Value::Array, and make it look consistent with the rest of the From<Collection> impls
2018-01-21 09:21:44 +01:00
Árpád Goretity
75ffe41476
Remove unnecessary copy in Value::from(Cow::Owned)
2018-01-21 09:20:15 +01:00
David Tolnay
1e69e83049
Follow clippy's replace_consts lint
2018-01-15 11:49:26 -08:00
David Tolnay
c9cf70da46
Release 1.0.9
v1.0.9
2017-12-30 13:31:38 -05:00
David Tolnay
947385024d
Test fewer old versions
2017-12-30 13:31:37 -05:00
David Tolnay
bfd4562d74
Hide Number implementation details from Debug representation
2017-12-30 13:28:30 -05:00
David Tolnay
81c7298c86
Test the debug representations of Number and Value
2017-12-30 13:21:00 -05:00
David Tolnay
20d9b39c29
Upgrade to compiletest 0.3
2017-12-27 14:57:27 -05:00
David Tolnay
a2038cfeb2
Merge pull request #399 from serde-rs/map-or
...
Fewer instantiations of Option::map_or
2017-12-23 21:59:37 -08:00
David Tolnay
a51990c272
Fewer instantiations of Option::map_or
...
This lowers us from 59 instantiations of Option::map_or to just 6. On my
computer this improves serde_json compile time by about 5%. Pretty wild!
2017-12-24 00:47:44 -05:00
David Tolnay
b4e061fa3a
Release 1.0.8
v1.0.8
2017-12-08 08:59:27 -08:00
David Tolnay
539cc441cb
Merge pull request #392 from bouk/fix-truefalse
...
Fix falsey typo
2017-12-07 09:43:33 -08:00
Bouke van der Bijl
53b5ddbdcd
Fix falsey typo
2017-12-07 17:36:36 +01:00
David Tolnay
788e431fde
Encountering an error is the cold path
2017-12-04 23:51:13 -08:00
David Tolnay
0048e76100
Decrease size of ErrorCode from 32 bytes to 24 bytes
2017-12-04 23:47:31 -08:00
David Tolnay
561b0dbe4d
Make deserialize_bytes work more like deserialize_str
2017-12-04 23:43:50 -08:00
David Tolnay
92ddbdf493
Merge pull request #390 from serde-rs/try
...
Override the try macro to eliminate From calls
2017-12-03 22:23:15 -08:00
David Tolnay
86cb0b9493
Override the try macro to eliminate From calls
...
We only use our own error type; no need for From conversions provided
by the standard library's try! macro. This reduces lines of LLVM IR by
4%.
2017-12-03 22:08:24 -08:00
David Tolnay
5bf9144d60
Merge pull request #389 from serde-rs/hints
...
Implement all the deserializer hints
2017-12-03 22:08:02 -08:00
David Tolnay
0961dbe9e7
Implement all the deserializer hints
...
This is a way to avoid instantiating all the Visitor methods on every
Visitor that is used with serde_json. If the Deserialize impl hints
that a boolean is required by invoking deserialize_bool, we don't also
need to instantiate its visit_u64 and visit_i64 and visit_f64 and
visit_str and visit_borrowed_str and visit_unit and visit_seq and
visit_map methods if the input contains some other type. Instead we
render the invalid_type error in a central place in the serde_json
Deserializer that is instantiated just once.
Improves compile time of json-benchmark by 30%.
2017-12-03 21:50:23 -08:00
David Tolnay
19b56b68ba
Merge pull request #388 from serde-rs/mapkey
...
Stop instantiating parse_value in MapKey::deserialize_any
2017-12-03 16:35:06 -08:00
David Tolnay
08b00d1855
Stop instantiating parse_value in MapKey::deserialize_any
...
The parse_value method is the most expensive method in serde_json in
terms of compile time. Before this change, we were instantiating it
twice for every derive(Deserialize) struct because every struct has
two different Visitor impls -- one for the key type and one for the
struct overall -- see https://serde.rs/deserialize-struct.html .
This improves compile time of json-benchmark by 20%.
2017-12-03 16:04:54 -08:00
David Tolnay
a882cd448d
Merge pull request #387 from serde-rs/fix-position
...
Stop instantiating fix_position so many times
2017-12-03 15:44:33 -08:00
David Tolnay
c8f0eb8bf9
Stop instantiating fix_position so many times
2017-12-03 15:00:50 -08:00
David Tolnay
da044527fc
Release 1.0.7
v1.0.7
2017-12-01 10:43:53 -08:00