David Tolnay
b98a9a8f9b
Support deserializing internally tagged enum from seq
...
During serialization, internally tagged enums invoke the Serializer's
serialize_struct. In JSON this turns into a map which uses visit_map
when deserialized. But some formats employ visit_seq when
deserializing a struct. One example is rmp-serde. Such formats were
previously unable to deserialize an internally tagged enum. This
change fixes it by adding visit_seq for internally tagged enums.
2017-09-17 13:45:12 -07:00
David Tolnay
4b00de0e22
Release 1.0.14
2017-09-09 12:50:57 -07:00
David Tolnay
8403fa018e
Merge pull request #1052 from serde-rs/static
...
Special case for 'static fields
2017-09-09 12:50:11 -07:00
David Tolnay
0e9f1b42de
Merge pull request #1053 from serde-rs/cast
...
Fix trivial numeric cast in visit_u64
2017-09-09 12:43:46 -07:00
David Tolnay
0085d05e55
Special case for 'static fields
2017-09-09 12:39:14 -07:00
David Tolnay
2eed855bff
Fix trivial numeric cast in visit_u64
2017-09-09 12:37:00 -07:00
David Tolnay
c3eced410f
Release 1.0.13
2017-09-09 11:40:31 -07:00
David Tolnay
8a630fea7c
Suppress cast_lossless lint in test suite
2017-09-09 11:08:19 -07:00
David Tolnay
2e597ed3f0
Remove unused functions in with-variant tests
...
Macro expansion fails before it would generate code to call any of these.
2017-09-09 10:58:32 -07:00
David Tolnay
0963121beb
Support consolidated with
attribute for variants
2017-09-09 10:50:40 -07:00
David Tolnay
15b2714058
Merge pull request #1015 from spinda/with-variant
...
implement (de)serialize_with for variants
2017-09-09 10:49:24 -07:00
David Tolnay
9ce107de25
Merge pull request 963 from sfackler/u64-identifier
...
Conflicts:
serde_derive/src/de.rs
2017-09-08 21:35:41 -07:00
David Tolnay
e47284c0e0
Merge pull request #1043 from greyblake/screaming-kebab-case
...
SCREAMING-KEBAB-CASE support
2017-09-08 21:30:01 -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
David Tolnay
ba260b0e5f
Merge pull request #1045 from xfix/patch-1
...
Fix a type name typo in visit_i64 documentation
2017-09-07 12:07:03 -07:00
Konrad Borowski
8452e313cc
Fix a type name typo in visit_i64 documentation
2017-09-07 19:53:07 +02:00
Steven Fackler
deca49315a
Inline skip_field
2017-09-05 22:36:42 -07:00
Steven Fackler
95407a4ca5
Support field ident deserialization from u32
2017-09-05 21:55:33 -07:00
Steven Fackler
2fe9a860cd
Inform serializers about skipped fields.
...
Closes #960 .
2017-09-05 21:55:33 -07:00
Sergey Potapov
e67d941b78
Support for SCREAMING-KEBAB-CASE
2017-09-05 22:07:08 +02: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
370c8a91cb
Merge pull request #1039 from serde-rs/rcde
...
Deserialize unsized Arc and Rc
2017-09-04 11:07:19 -07:00
David Tolnay
972da59ebc
Deserialize unsized Arc and Rc
2017-09-04 10:56:42 -07:00
David Tolnay
a42008f695
Merge pull request #1038 from serde-rs/rcser
...
Serialize unsized Arc and Rc
2017-09-04 10:54:20 -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
David Tolnay
d665a2f2b2
Merge pull request #1023 from hcpl/fix-doc-typo
...
Fix `SeqAcccess` typo in docs
2017-08-20 15:03:10 -07:00
hcpl
44e23254c9
Fix SeqAcccess
typo in docs
2017-08-20 22:02:28 +03:00
Michael Smith
552971196d
Fix Clippy errors in variant serialize_with tests
2017-08-16 12:04:39 -07:00
David Tolnay
0681cd5003
Replace deprecated compiletest::default_config()
2017-08-15 22:10:18 -07:00
David Tolnay
d965367238
No longer need feature(into_boxed_c_str)
2017-08-15 22:08:23 -07:00
David Tolnay
a6df35b3d2
Disable no_std test on appveyor
2017-08-15 21:58:52 -07:00
Michael Smith
9fc180e62f
Implement deserialize_with for variants
...
Complements variant serialize_with and closes #1013 .
2017-08-14 14:41:05 -07:00
Michael Smith
5b815b7001
Implement serialize_with for variants
...
As discussed in #1013 , serialize_with functions attached to variants receive an
argument for each inner value contained within the variant. Internally such a
function is wired up to the serializer as if the variant were a newtype variant.
2017-08-14 11:17:08 -07:00
David Tolnay
4831482695
Doc comment on statement is not used by rustdoc
...
Fixes #1014 .
2017-08-05 23:35:14 -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
42ed62cf24
Merge pull request #1003 from serde-rs/newnonzero
...
NonZero constructor now returns Option
2017-07-27 00:54:23 -07:00
David Tolnay
9f0973aff7
NonZero constructor now returns Option
2017-07-27 00:35:56 -07:00
David Tolnay
ccec002bf3
Merge pull request #1001 from serde-rs/remotevis
...
Inherit the visibility of remote struct definition
2017-07-27 00:29:57 -07:00
David Tolnay
f36a1e0895
Inherit the visibility of remote struct definition
2017-07-25 23:52:06 -07:00
David Tolnay
e6487cf6fa
Merge pull request #995 from serde-rs/nobin
...
Workaround for "no bin target named serde_derive_tests_no_std"
2017-07-21 00:17:25 -07:00
David Tolnay
4f2e8d5dbb
Workaround for "no bin target named serde_derive_tests_no_std"
2017-07-21 00:05:30 -07:00
David Tolnay
1c2a4bff1c
Merge pull request #991 from Marwes/test_systemtime
...
Fix SystemTime serialization test on Windows
2017-07-16 06:10:43 -07:00
Markus Westerlind
85bccf42b6
Fix SystemTime serialization test on Windows
...
Windows's `SystemTime` do not have nanosecond resolution which caused the test duration to be truncated b1363a73ed/src/libstd/sys/windows/time.rs (L177)
2017-07-16 12:16:07 +02: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