Commit Graph

28 Commits

Author SHA1 Message Date
David Tolnay
2212bfbf2c Result needs to be fully qualified
Without this:

```
error[E0244]: wrong number of type arguments
  --> src/api/accounts.rs:19:10
   |
19 | #[derive(Serialize, Deserialize, Debug)]
   |          ^^^^^^^^^^ expected 1 type arguments, found 2
```
2016-09-07 16:37:26 -07:00
David Tolnay
14446af537
Fix "variable does not need to be mutable" warning 2016-09-02 11:42:33 -07:00
David Tolnay
a732b9bad3
Fix codegen with lifetimes but no type parameters 2016-08-19 11:12:38 -04:00
David Tolnay
c4b5a42615
Serialize and Deserialize for std::time::Duration 2016-08-03 19:33:31 -07:00
Steven Fackler
ea833d3427 Split serialize_map_elt
Like what's been done on the deserialization side with MapVisitor, this
allows some weirder uses of Serde to handle the key and value in
separate steps.
2016-07-27 12:12:07 -07:00
David Tolnay
3b7fa47b2e
PhantomData<T> does not require bounds on T 2016-07-22 09:05:43 -07:00
David Tolnay
fb6fc4e19f
Add tests for concrete instantiations in test_gen 2016-07-22 08:49:51 -07:00
David Tolnay
85772726ee Merge pull request #456 from serde-rs/generic
Generate bounds on type parameters only
2016-07-22 07:58:56 -07:00
David Tolnay
25a5dd1579
Impl Deserialize for PhantomData<T> for all T 2016-07-21 23:22:38 -07:00
David Tolnay
1831b471f9
Generate bounds on type parameters only 2016-07-21 23:06:18 -07:00
Oliver Schneider
124bacd871
fix for 1.8, 1.9 and stable 2016-07-21 10:11:04 +02:00
Oliver Schneider
4280dd466d
rename deserialize_fixed_size_array to deserialize_seq_fixed_size 2016-07-20 19:20:31 +02:00
Oliver Schneider
36a7bf6244
make Deserializer pure 2016-07-20 10:26:31 +02:00
David Tolnay
13e1a129dd
Ignore unused struct in test_gen.rs 2016-07-17 21:10:05 -07:00
David Tolnay
334a6e788a
Remove commented code in test_macros.rs 2016-07-17 21:09:44 -07:00
David Tolnay
4f79829849
Rename feature nightly-testing to unstable-testing 2016-07-17 13:34:23 -07:00
Oliver Schneider
42c41922ce
adjust tests for new interface 2016-07-15 12:59:30 +02:00
Oliver Schneider
16ba32dbe1
stateful map/seq serialization 2016-07-14 15:36:47 +02:00
Oliver Schneider
6adcaa55e5
json needs more info 2016-07-12 16:53:20 +02:00
Oliver Schneider
fb575225bc
simplify! 2016-07-12 16:16:48 +02:00
Oliver Schneider
3766633f4a
adjust codegen to work with the revamped map/seq serializer 2016-07-12 15:44:19 +02:00
David Tolnay
1a449bb3d0
Invalid-length when enum seq is too short 2016-07-05 01:35:20 -07:00
David Tolnay
041d5c0842
Make serde_test asserts more consistent 2016-06-28 23:50:19 -07:00
David Tolnay
7d09053bb8
Fix declare_ser_tests to work on old rustc 2016-06-28 23:09:37 -07:00
David Tolnay
cfc2f9adc0
Remove Error from name of Error variants 2016-06-28 22:49:13 -07:00
David Tolnay
093201abfb
Assert tokens are empty after reaching error 2016-06-28 22:23:38 -07:00
David Tolnay
6d64104375
Factor the Token De/Serializer into serde_test 2016-06-28 21:54:51 -07:00
David Tolnay
fb0e62951f
Rename serde_tests to testing 2016-06-28 20:43:59 -07:00