32 Commits

Author SHA1 Message Date
Andrii Radyk
ed2b92f98b add Error::source 2020-01-20 23:07:27 +01:00
Nikhil Benesch
31641affad
Expose lifetimes in UrlEncodedSerializer
Forcing UrlEncodedSerializer to have a 'static lifetime is unnecessarily
restrictive and breaks a downstream dependency, reqwest. Thread a new
lifetime through to fix the problem.
2019-07-30 13:26:36 -04:00
bors[bot]
4250a6bcd9 Merge #51
51: feat: allow serialization of unit structs r=nox a=fdehau

fix #50 

Co-authored-by: Florian Dehau <work@fdehau.com>
2019-07-30 07:41:19 +00:00
Simon Sapin
99ef71ac2e Update the url crate to 2.0 2019-07-24 16:59:16 +02:00
Florian Dehau
76b45ee001 feat: allow serialization of unit structs 2019-04-18 08:21:54 +02:00
Anthony Ramine
98f0113592 Don't use CowStrDeserializer (fixes #53) 2019-04-16 11:26:25 +02:00
Anthony Ramine
92eadc25be Reformat 2019-04-16 11:15:32 +02:00
Sam Sieber
0ecc730e64 Fix struct newtype deserialization (and add tests) 2018-11-19 08:59:04 -07:00
Shaun Mangelsdorf
4d220818f7 Implement deserialization into unit enums 2018-08-14 12:52:36 +02:00
Without Boats
ecb91cfcd7 Deserialize () from input without key/value pairs. 2017-05-21 00:28:04 -07:00
Ted Driggs
abb8d81f9f Update to serde 1.0.0 2017-05-08 17:18:53 +02:00
Anthony Ramine
7ddde33a33 Have a custom type for deserialising values (fixes #16)
This lets us handle Option values correctly.
2017-05-06 10:59:42 +02:00
Anthony Ramine
f122a88561 Reformat de 2017-05-06 10:43:25 +02:00
Anthony Ramine
a8def0d865 Inline docs of reexports and bump version to 0.4.2 2017-02-05 14:46:33 +01:00
Arthur Skobara
8839c6a86c Introduce de::from_reader 2017-02-05 14:34:14 +01:00
Anthony Ramine
bc8197c884 Update serde to 0.9.3 and use serde::ser::Impossible 2017-01-31 10:52:21 +01:00
Anthony Ramine
f5b1ae8828 Do not forbid bool keys anymore
Floats are supported so...
2017-01-29 10:22:40 +01:00
Anthony Ramine
5625c254e5 Use dtoa to not allocate a String to serialize a float 2017-01-29 10:22:40 +01:00
Anthony Ramine
1d88bbb26b Use itoa to not allocate a String to serialize an integer 2017-01-29 10:22:39 +01:00
Anthony Ramine
e140c2b5c5 Use void for the unreachable serializers 2017-01-29 10:22:39 +01:00
Anthony Ramine
fa8fb69da0 Do not allocate a String to serialize a bool 2017-01-29 10:22:39 +01:00
Anthony Ramine
9960d5af2d Update to serde 0.9.0 (fixes #7) 2017-01-29 10:22:30 +01:00
Anthony Ramine
8e5cf19e07 Reformat with rustfmt 2017-01-27 22:56:04 +01:00
Anthony Ramine
5202ee622b Support Option values in the sequence serializer
This allows us to serialize sequences of Option<(K, V)> values.
2016-10-23 12:13:09 +02:00
Anthony Ramine
f9c64eb16c Support serializing top-level Option values 2016-10-23 11:56:27 +02:00
Anthony Ramine
39f7d33b0b Use opaque structs instead of opaque tuples
Opaque struct tuples leak their arity.
2016-10-23 11:55:16 +02:00
Matthias Endler
f553c4e08f Add support for boolean values 2016-09-22 14:31:05 +02:00
Matthias Endler
f639279e3e Add support for option parameters 2016-09-18 19:15:03 +02:00
Anthony Ramine
967549d859 Add convenience functions (fixes #2) 2016-09-11 18:49:29 +02:00
Anthony Ramine
b0794d23e3 Remove the T parameter from Deserializer
No idea how that ended up there.
2016-09-11 18:43:22 +02:00
Anthony Ramine
6a21acd172 Make Serializer borrow its inner url-encoded serializer
While at it, create Serializer::new to actually instantiate it.
2016-09-11 18:36:15 +02:00
Anthony Ramine
6ec689b376 x-www-form-urlencoded meets Serde 2016-09-11 13:44:28 +02:00