Erick Tryzelaar
e0eff942b1
Add Error::unknown_field_error
2015-04-12 10:32:54 -07:00
Erick Tryzelaar
1da47c0870
Change de::VariantVisitor to let deserializers know the variant kind
...
This allows formats like cbor that encode a unit variant as just a
string to work.
[breaking-change]
2015-04-12 10:32:54 -07:00
Erick Tryzelaar
d8506e9a6d
Update to rust HEAD
2015-04-05 13:20:33 -04:00
Erick Tryzelaar
1618faed63
Add deserialization impls for {BTree,Hash}{Map,Set}
2015-03-23 19:02:20 -07:00
Erick Tryzelaar
09de237033
Allow Vecs, BTreeMaps, and HashMaps to be deserialized from a unit
...
Closes #36
2015-03-20 08:47:33 -07:00
Erick Tryzelaar
d17846eff1
Add deserializer type hinting hooks
...
Formats like xml have trouble knowing if they should deserialize
tags into a sequence from the stream they are deserializing from.
This PR adds hooks so the deserializee can inform the deserializer
to provide them a sequence if possible.
Closes #38 .
2015-03-20 08:32:33 -07:00
Erick Tryzelaar
5378d22708
Switch to the new custom_deserialize syntax
2015-03-19 20:19:49 -07:00
Erick Tryzelaar
eb4af09456
Simplify the variant deserializer visitor
2015-03-18 07:35:05 -07:00
Erick Tryzelaar
78137ee3a4
Rewrite enum deserialization to not require allocations
2015-03-16 22:42:04 -07:00
Oliver Schneider
f21cbb71e2
MapVisitor::end and SeqVisitor::end were mostly never called
2015-03-16 13:27:00 +01:00
Erick Tryzelaar
805a3435cf
Replace serde1 with serde2!
...
Closes #26 !
2015-03-08 22:56:33 -07:00