David Tolnay
7f9ba155cb
Explain what each dependency is for
2017-10-31 22:16:33 -07:00
David Tolnay
a4e0c2f055
Merge pull request #1075 from hcpl/clarify-readme-example
...
Clarify the README example for local builds
2017-10-31 22:16:15 -07:00
hcpl
3bbf70575b
Clarify the README example for local builds
2017-10-31 21:20:23 +02:00
David Tolnay
ad680cbd44
Release 1.0.17
2017-10-31 09:36:06 -07:00
David Tolnay
ff0cfb1f1f
Clean up trailing whitespace and where-clauses
2017-10-31 09:36:05 -07:00
David Tolnay
9b08915a18
Add tests for std::num::Wrapping impls
2017-10-31 09:32:58 -07:00
David Tolnay
501aa3ee1d
Share the import of std::num::Wrapping
2017-10-31 09:27:58 -07:00
David Tolnay
eebf0f8db8
Merge pull request #1072 from LinearZoetrope/wrapping
...
Add std::num::Wrapping impl
2017-10-31 09:26:17 -07:00
Zoe Juozapaitis
a7e4911ddb
Add newlines to ends of files
2017-10-31 04:29:00 -07:00
Zoe Juozapaitis
eb08f037f5
Add std::num::Wrapping support
2017-10-31 03:02:58 -07:00
David Tolnay
aa03fd5d1a
Duplicate error messages have been fixed
2017-10-27 21:08:41 -04:00
David Tolnay
e198afb0c1
Add missing copyright notices
2017-10-22 16:01:19 -07:00
David Tolnay
bc8de251cf
Update contributing.md with steps for running test suite
2017-10-22 15:46:54 -07:00
David Tolnay
99e8686189
Add error banner when running test suite without nightly compiler
2017-10-22 15:46:17 -07:00
David Tolnay
826f656e28
Compile and test the serde_derive "example" code
2017-10-22 12:09:56 -07:00
David Tolnay
ab7c003b64
Remove associated constants workaround
...
This has been stable since Rust 1.20.
2017-10-22 11:55:16 -07:00
David Tolnay
422191fcb0
Release 1.0.16
2017-10-22 11:29:44 -07:00
David Tolnay
4ba748c902
Clean up trailing whitespace
2017-10-22 11:29:35 -07:00
David Tolnay
14ed6f2dab
Simplify some IntoDeserializer deserializer types
2017-10-20 21:38:18 -07:00
David Tolnay
30606a43aa
IntoDeserializer for HashSet and HashMap with non-default hasher
2017-10-20 21:36:40 -07:00
David Tolnay
9be3d32016
Remove redundant readable/compact tests
...
This functionality is covered well enough by the std::net types.
2017-10-17 23:16:21 -07:00
David Tolnay
5daf1b89a1
Consolidate readable/compact deserialization tests
2017-10-17 23:15:35 -07:00
David Tolnay
f8f5d0ca2f
No need for readable setting for the ignore test
2017-10-17 23:09:50 -07:00
David Tolnay
57873cce28
Remove unused deserialization macros on no_std
2017-10-17 10:04:26 -07:00
David Tolnay
4ed0362c8e
Panic by default in serde_test is_human_readable
...
The serde_test Serializer and Deserializer panic in is_human_readable unless the
readableness has been set explicitly through one of the hidden functions. This
is to force types that have distinct readable/compact representations to be
tested explicitly in one or the other, rather than with a plain assert_tokens
which arbitrarily picks one.
We need to follow up by designing a better API in serde_test to expose this
publicly. For now serde_test cannot be used to test types that rely on
is_human_readable. (The hidden functions are meant for our test suite only.)
2017-10-17 09:49:42 -07:00
David Tolnay
4cecaf8d02
Test the maximum std::net string lengths
2017-10-15 20:32:30 -07:00
David Tolnay
50c696aabe
Write is_human_readable examples
2017-10-15 20:27:03 -07:00
David Tolnay
2f58a20bc6
Inline is_human_readable
2017-10-15 16:54:48 -07:00
David Tolnay
030459a040
Merge pull request #1044 from Marwes/human_readable
...
Serialize to binary if the serde format is not human readable
2017-10-15 16:39:58 -07:00
Markus Westerlind
e9b530a000
Hide is_human_readable constructors in serde_test
...
Until a good API can be found
2017-10-13 17:37:47 +02:00
David Tolnay
ea1a729088
Release 1.0.15
2017-09-17 13:58:35 -07:00
David Tolnay
857dcea774
Merge pull request #1058 from serde-rs/internally-tagged-seq
...
Support deserializing internally tagged enum from seq
2017-09-17 13:57:33 -07:00
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
Markus Westerlind
3b135431fd
Try to fix compilation on 1.13
2017-09-14 17:12:23 +02:00
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
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