Erick Tryzelaar
37bc3e9df3
Fix #[derive_deserialize] for deserializing empty sequences named units
2015-03-03 21:33:51 -08:00
Erick Tryzelaar
7a170e1b2c
Fix #[derive_serialize] for enum struct variants
2015-03-03 21:17:40 -08:00
Erick Tryzelaar
fe64145c06
Fix #[derive_serialize] for tuple structs
2015-03-03 21:14:43 -08:00
Erick Tryzelaar
4ff4165da6
Fix serializing named units
2015-03-03 20:29:59 -08:00
Erick Tryzelaar
ecc19bdbdb
Convert over to where clauses
2015-03-03 19:34:16 -08:00
Erick Tryzelaar
1182ad0223
Fix tests, make Deserializer::visit take a value not a reference
2015-03-03 11:09:09 -08:00
Erick Tryzelaar
9904d32ff9
Fix serde2_macros and benchmarks, and silence some warnings
2015-03-03 11:07:33 -08:00
Hugo Duncan
1c0a16f719
Add aliases on struct fields
...
Allow specification of an alias on a struct field with
the #[serde(alias="SomeAlias"] attribute.
Addresses #13
2015-03-02 17:20:23 -05:00
Hugo Duncan
bb1a9b2389
Add serde default attribute for fields
...
When annotated with #[serde(default)], a field gets a default value
using std:default::Default, and will not error when decoding if the
field is missing from the input.
Addresses #9
Refactor default_value to use if-let
2015-03-02 17:20:22 -05:00
Erick Tryzelaar
d4dcf8e75d
A really ugly hack to get generic enum serialization
2015-02-25 07:22:44 -08:00
Thomas Bahn
e9c7ea1a64
Follow rustc: Compiler internals changed
2015-02-24 10:45:34 +01:00
Erick Tryzelaar
3fac47e01c
Fix #[derive_serialize] for enums
2015-02-19 08:35:42 -08:00
Erick Tryzelaar
67d7ac4468
Update and tweak some names
2015-02-15 21:07:17 -08:00
Erick Tryzelaar
b70d77b5c9
Cleanup code, fix some incompatibilites with rust head
2015-02-13 09:40:47 -08:00
Erick Tryzelaar
1552eb72dc
Add #[derive_deserialize] support for enums
2015-02-11 11:24:41 -08:00
Erick Tryzelaar
3fd42e616c
Initial macro support for deserializing structs and tuple structs
2015-02-10 21:08:04 -08:00
Thomas Bahn
5dd077969c
Use slicing syntax instead of .as_slice()
2015-02-06 22:23:16 +01:00
Thomas Bahn
3022d7301a
Use deref coercions when possible
2015-02-06 22:23:15 +01:00
Thomas Bahn
3b5d71fbb5
Add empty associated_types
in expand_derive
2015-02-06 16:51:11 +01:00
Erick Tryzelaar
e2568ddfac
Get the benchmark running again
2015-01-18 11:08:06 -08:00
Dan Burkert
460dbce8cc
Update for rustc 1.0.0-nightly (8903c21d6 2015-01-15 22:42:58 +0000)
2015-01-17 16:36:15 -08:00
Erick Tryzelaar
8715a41158
Update to rust HEAD
2015-01-07 09:30:11 -08:00
Thomas Bahn
d09b9eb72c
Unboxed closures: function signature of expand* changed
2015-01-02 13:32:54 +01:00
Thomas Bahn
ae665a1c05
Syntax extension internals in rust changed
...
See e656081b70
2015-01-01 14:22:23 +01:00
Erick Tryzelaar
29242ee6a6
update to rust head
2014-12-17 23:00:05 -08:00
Erick Tryzelaar
b87f0f5fde
Remove deprecated attributes
2014-12-08 20:41:40 -08:00
Erick Tryzelaar
0b8324ae09
Fix serde2 macro generation
2014-10-23 10:26:52 -07:00
Erick Tryzelaar
ae582b6064
Get serde2_macros compiling again
2014-09-30 08:17:10 -07:00
kvark
c064b06272
Fixed serde2
2014-09-16 22:34:29 -04:00
Erick Tryzelaar
c77d814685
Clean up serde2_macros
2014-09-06 23:24:11 -07:00
Erick Tryzelaar
3a5424b13c
add serde2_macros
2014-09-03 07:13:33 -07:00