16 Commits

Author SHA1 Message Date
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