Markus Westerlind
945d12c0b4
Use the variant_identifier macro for OsString
2017-09-14 17:08:17 +02:00
Markus Westerlind
e36915300f
Properly deserialize non-readable IpAddr and SocketAddr
2017-09-14 17:08:17 +02:00
Markus Westerlind
85c05d301a
Fix the non-readble IpAddr serialize implementations
2017-09-11 17:40:02 +02:00
Markus Westerlind
c2474bf6ee
Document that is_human_readable == false is a breaking change
2017-09-11 17:18:35 +02:00
Markus Westerlind
a52f436788
Fix rustc 1.13 and clippy errors on travis
2017-09-11 16:03:00 +02:00
Markus Westerlind
ad3335e5d6
Serialize non-human-readble ip addresses as tuples
...
Since we know exactly how many bytes we should serialize as we can hint
to the serializer that it is not required which further reduces the
serialized size when compared to just serializing as bytes.
2017-09-11 15:54:53 +02:00
David Tolnay
4b00de0e22
Release 1.0.14
2017-09-09 12:50:57 -07:00
David Tolnay
c3eced410f
Release 1.0.13
2017-09-09 11:40:31 -07:00
David Tolnay
800620e2aa
Merge pull request #1022 from sfackler/skip-field
...
Inform serializers about skipped fields.
2017-09-08 09:47:43 -07:00
Markus Westerlind
40c670e625
Add non-human readable serializations for ip addresses
2017-09-08 10:37:33 +02:00
Konrad Borowski
8452e313cc
Fix a type name typo in visit_i64 documentation
2017-09-07 19:53:07 +02:00
Markus Westerlind
0dccbb1f11
Serialize to binary if the serde format is not human readable
...
This implements the KISS suggested in https://github.com/serde-rs/serde/issues/790 .
It is possible that one of the other approaches may be better but this
seemed like the simplest one to reignite som discussion.
Personally I find the original suggestion of adding two traits perhaps slightly
cleaner in theory but I think it ends up more complicated in the end
since the added traits also need to be duplicated to to the `Seed`
traits.
Closes #790
2017-09-07 16:20:57 +02:00
Steven Fackler
deca49315a
Inline skip_field
2017-09-05 22:36:42 -07:00
Steven Fackler
2fe9a860cd
Inform serializers about skipped fields.
...
Closes #960 .
2017-09-05 21:55:33 -07:00
David Tolnay
d4042872f5
Release 1.0.12
2017-09-04 11:11:44 -07:00
David Tolnay
64af86b830
Suppress cast_lossless lint
2017-09-04 11:10:43 -07:00
David Tolnay
972da59ebc
Deserialize unsized Arc and Rc
2017-09-04 10:56:42 -07:00
David Tolnay
e4ea2a56e9
Serialize unsized Arc and Rc
2017-09-04 10:31:03 -07:00
David Tolnay
7650a48fdd
Opt in to clippy_pedantic lints
2017-08-24 00:41:42 -07:00
hcpl
44e23254c9
Fix SeqAcccess
typo in docs
2017-08-20 22:02:28 +03:00
David Tolnay
d965367238
No longer need feature(into_boxed_c_str)
2017-08-15 22:08:23 -07:00
David Tolnay
d3e5dd9cd7
Disagree that 0x10000 is unreadable
2017-08-05 23:26:15 -07:00
David Tolnay
26098ed877
Release 1.0.11
2017-07-27 00:56:28 -07:00
David Tolnay
9f0973aff7
NonZero constructor now returns Option
2017-07-27 00:35:56 -07:00
David Tolnay
959fee024f
Merge pull request #986 from Marwes/simplify_seed
...
refactor: Implement Deserialize of wrapper types with a macro
2017-07-12 20:36:48 -07:00
Markus Westerlind
8ede8c8e2a
refactor: Implement Deserialize of wrapper types with a macro
2017-07-13 00:02:29 +02:00
David Tolnay
83537c95e1
Release 1.0.10
2017-07-11 21:19:24 -07:00
David Tolnay
fa9057fa31
Merge pull request #949 from WiSaGaN/feature/support-system-time
...
Support std::time::SystemTime
2017-07-11 21:17:56 -07:00
Wangshan Lu
b504b08782
Fix SystemTime serde name
2017-07-12 12:01:29 +08:00
David Tolnay
9ecb0839de
Release 1.0.9
2017-06-29 20:21:29 -07:00
David Tolnay
6801a13650
Fix unused seq and map macros
2017-06-17 19:01:12 -07:00
David Tolnay
e43d3f3e4f
Merge crate collections
into alloc
2017-06-17 18:35:56 -07:00
Wangshan Lu
5dd327fb02
Support std::time::SystemTime
2017-06-04 16:39:03 +08:00
David Tolnay
fd3d1396d3
Release 1.0.8
2017-05-24 00:17:27 -07:00
David Tolnay
c47b4c8e0b
Release 1.0.7
2017-05-19 17:00:31 -07:00
Andrew Gallant
237be46e29
add borrowed value deserializers
...
This adds two new types to the `de::value` module,
`BorrowedStrDeserializer` and `BorrowedBytesDeserializer`. A
`BorrowedStrDeserializer` is just like `StrDeserializer`, except the
lifetime of the string is tied to the lifetime of the deserializer. This
can be useful when, for example, deserializing into a
`HashMap<&str, &str>` when the keys/values are tied to the deserializer
itself.
The `BorrowedBytesDeserializer` has no analog, but it's the same as
`BorrowedStrDeserialize` except for `&[u8]` instead of `&str`.
2017-05-19 19:55:34 -04:00
David Tolnay
3d7aad1e7b
Release 1.0.6
2017-05-17 08:20:54 -07:00
David Tolnay
4d5e450054
Release 1.0.5
2017-05-14 12:53:48 -07:00
David Tolnay
cda1fc46b0
Fix internally tagged struct variant containing unit variant containing borrowed string
2017-05-14 12:39:42 -07:00
David Tolnay
c68b959696
Release 1.0.4
2017-05-10 20:05:22 -07:00
David Tolnay
c1259fbc87
Support borrowing within internally tagged enum
2017-05-10 19:56:05 -07:00
David Tolnay
58e30eaee4
Release 1.0.3
2017-05-10 10:15:39 -07:00
Paul Collier
f347b2d363
impl Deserialize for &'a Path
2017-05-10 13:03:03 -04:00
David Tolnay
c913527944
Removed Deref impl for NonZero
2017-05-09 19:48:54 -07:00
David Tolnay
8fafc7420c
Release 1.0.2
2017-04-27 12:32:30 -07:00
Ted Driggs
873cfbe9ab
Fix #816 - adjacently-tagged enums honor deny_unknown_fields
2017-04-27 11:24:09 -07:00
Simon Sapin
6fbf40b83c
Remove usage of unstable core::num::Zero, which was removed upstream.
...
https://github.com/rust-lang/rust/pull/41437
2017-04-24 08:29:38 +09:00
David Tolnay
d7ccef0cac
Release 1.0.0
2017-04-20 08:19:31 -07:00
David Tolnay
2d465415c5
Take credit
2017-04-20 08:13:46 -07:00
David Tolnay
4a9cb3395d
Fix the serialize_bytes doc test
2017-04-19 15:03:02 -07:00