David Tolnay
893c0578dd
Release 1.0.44
2018-05-01 22:34:27 -07:00
David Tolnay
47a4ffbd31
Fill in missing fully qualified paths in flatten
2018-05-01 22:24:25 -07:00
David Tolnay
d82d1707d6
Format with rustfmt 0.6.0
2018-04-30 01:42:46 -07:00
David Tolnay
89278996c5
Release 1.0.43
2018-04-23 11:23:58 -07:00
David Tolnay
bceda5fb18
Unpack a layer of NewtypeStruct when content is newtype
2018-04-23 11:04:42 -07:00
David Tolnay
af795e2e54
Release 1.0.42
2018-04-21 15:16:10 -07:00
David Tolnay
c455720f81
Mark error construction as cold code
...
This eliminates 12% of the Serde-related code in the Xi release binary
as measured by:
nm -S target/release/xi-core \
| awk '/serde/{sum += strtonum("0x"$2)} END{print sum}'
2018-04-21 14:41:14 -07:00
David Tolnay
382f3c2771
Release 1.0.41
2018-04-19 22:13:45 -07:00
David Tolnay
85ca12a8c3
Deserialize any integer from any buffered integer type
2018-04-19 22:11:14 -07:00
David Tolnay
541f9180cf
Release 1.0.40
2018-04-19 10:31:33 -07:00
David Tolnay
3c4961c48e
Lenient byte and string deserialization from buffered content
2018-04-19 10:21:55 -07:00
David Tolnay
184264ee92
Release 1.0.39
2018-04-17 11:35:45 -07:00
David Tolnay
6050229e7e
Simplify counting remaining elements
2018-04-17 00:15:09 -07:00
David Tolnay
e1db820c9f
Implement all &Content deserializer hints
2018-04-17 00:15:05 -07:00
David Tolnay
0081cc961d
Implement all Content deserializer hints
2018-04-17 00:14:59 -07:00
David Tolnay
8d113e67d6
Release 1.0.38
2018-04-14 20:30:18 -07:00
David Tolnay
9f38ca032e
Format with rustfmt 0.4.1
2018-04-12 23:04:47 -07:00
David Tolnay
eed18ffab2
Release 1.0.37
2018-04-01 22:30:32 -07:00
David Tolnay
9c659d9d86
Format with rustfmt 0.4.1
2018-04-01 00:06:54 +02:00
David Tolnay
222779d46c
Document that rc impls require a feature
...
Fixes #1203 .
2018-03-30 10:31:54 +02:00
David Tolnay
7c04c98e0e
Release 1.0.36
2018-03-27 11:35:45 +02:00
David Tolnay
23e2e92237
Release 1.0.35
2018-03-25 12:59:02 +02:00
David Tolnay
d45ca2f5e4
Re-export NonZero* types from ::lib
2018-03-25 12:30:35 +02:00
David Tolnay
d7f9f8209d
Indicate that NonZero<T> is deprecated
2018-03-25 12:26:06 +02:00
Simon Sapin
05b22a06d7
impl Serialize and Deserialize for std::num::NonZero*
...
… gated on the `unstable` Cargo feature.
These are new standard library types.
2018-03-25 12:23:55 +02:00
David Tolnay
2b18b57d84
Release 1.0.34
2018-03-22 15:06:21 -07:00
Armin Ronacher
0fde3c2ee8
Fix a warning caused by no-default-features
2018-03-20 23:06:55 +01:00
Armin Ronacher
27f935f036
Correctly serialize newtype variants for flatten
2018-03-20 23:05:05 +01:00
Armin Ronacher
1d92569abc
Added explanatory comment about fetching data from buffered content
2018-03-20 21:24:00 +01:00
Armin Ronacher
6e324e887d
Some refactoring to use a bit less unwrap()
2018-03-20 13:20:56 +01:00
Armin Ronacher
7c596c7136
Remove unnecessary as_str
2018-03-20 13:11:17 +01:00
Armin Ronacher
7cf184624a
Use more consistent error messages for bad flattening
2018-03-18 23:46:28 +01:00
Armin Ronacher
205f606962
Various clippy fixes
2018-03-18 22:59:27 +01:00
Armin Ronacher
ad40f976db
Switch to using Content keys internally for flattening to later support arbitrary keys
2018-03-18 21:07:08 +01:00
Armin Ronacher
61b167be9a
Attempted support for in_place deserialization for structs as map
2018-03-18 18:22:06 +01:00
Armin Ronacher
f1af2dc5ab
Added support for newtype variant serialization
2018-03-18 13:10:54 +01:00
Armin Ronacher
ebc61baab2
Added newtype struct support for flattening
2018-03-18 13:02:00 +01:00
Armin Ronacher
2f57cecf13
format! -> format_args! for an error message
2018-03-16 23:38:50 +01:00
Armin Ronacher
bfdcbae9db
Fixed an unused import error
2018-03-16 23:30:55 +01:00
Armin Ronacher
ca41e16e92
Added some missing conditionals for feature compilation
2018-03-16 23:20:14 +01:00
Armin Ronacher
49e302d17d
Improved error message for flattening on unsupported types
2018-03-16 23:05:48 +01:00
Armin Ronacher
a8c8c2028e
Added support for struct variant enum serialization
2018-03-16 23:05:48 +01:00
Armin Ronacher
d1833c5602
Added support for basic enums in flatten
2018-03-16 23:05:48 +01:00
Armin Ronacher
ebf80ac965
Implement deserialization support for flatten
2018-03-16 23:05:48 +01:00
Armin Ronacher
112dfd7428
Correctly suppress the end() call for flattened serialization
2018-03-16 23:05:48 +01:00
Armin Ronacher
b692923321
Non working changes to the flatten serializer
2018-03-16 23:05:48 +01:00
Armin Ronacher
9e8cda4c37
Added basic not fully working FlatMapSerializer
2018-03-16 23:05:48 +01:00
Jan Michael Auer
5457394f5b
Fixed various issues with combinding flatten and deny_unknown_fields
2018-03-16 23:05:48 +01:00
Jan Michael Auer
6627540dd6
Added support basic deserialization in derive
2018-03-16 23:05:48 +01:00
Armin Ronacher
39413c8ce7
Implement deserializer for map mode and collection fields
2018-03-16 23:05:22 +01:00