Commit Graph

1289 Commits

Author SHA1 Message Date
David Tolnay
55e5f19437
Same for deserialization 2016-09-12 00:50:30 -07:00
David Tolnay
c34baa1e5f
No more syntex for serde_derive 2016-09-11 19:55:13 -07:00
David Tolnay
7cc36a9cd3
Release 0.8.8 2016-09-08 08:34:20 -07:00
Homu
d343017f47 Auto merge of #546 - serde-rs:qual, r=oli-obk
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-08 18:05:36 +09:00
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
e85ca8411e
Release 0.8.7 2016-09-05 09:39:27 -07:00
Homu
1ff2053262 Auto merge of #536 - serde-rs:mutempty, r=oli-obk
Fix "variable does not need to be mutable" warning

Fixes #534.

cc @EliDupree
2016-09-06 01:10:43 +09:00
Homu
bf779ea343 Auto merge of #525 - serde-rs:forward, r=oli-obk
Expose forward_to_deserialize macro

Fixes #522.

```rust
impl Deserializer for MyDeserializer {
    fn deserialize<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error>
        where V: Visitor
    {
        /* ... */
    }

    forward_to_deserialize! {
        bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 char str string
        unit option seq seq_fixed_size bytes map unit_struct newtype_struct
        tuple_struct struct struct_field tuple enum ignored_any
    }
}
```

cc @nox
2016-09-06 00:37:18 +09:00
David Tolnay
8fe66c7f2a Merge pull request #520 from serde-rs/bytes
Add constructors for Bytes and ByteBuf
2016-09-05 08:37:10 -07:00
David Tolnay
e03dedabe4
Use peekable iterator to check for nonzero serialized fields 2016-09-05 08:22:17 -07:00
David Tolnay
08bc2d2e76
Use constructors to create Bytes and ByteBuf 2016-09-05 08:09:23 -07:00
David Tolnay
35be61d85f
Resolve merge conflict 2016-09-05 08:02:35 -07:00
David Tolnay
3692edfd08
Merge branch serde-rs/master into serde-rs/forward 2016-09-05 07:59:42 -07:00
Homu
5a258ade27 Auto merge of #527 - serde-rs:seqvisitor, r=oli-obk
Impl SeqVisitor for MapDeserializer

@nox is this what you were trying to implement?
2016-09-05 20:09:44 +09:00
Homu
f3052c392e Auto merge of #538 - serde-rs:notfalse, r=oli-obk
Remove `if !false { ... }` from generated serialization code

I don't think this negatively affects maintainability of the code in serde_codegen and I think there is some value in keeping our generated code relatively clear so that people can use it as a template when implementing Serialize manually with minor modifications.
2016-09-05 19:52:43 +09:00
David Tolnay
d1ce4d62c9 Change to expression so that syntex keeps the semicolon 2016-09-02 18:07:26 -07:00
David Tolnay
869ebd9e4e Remove if !false { ... } from generated serialization code 2016-09-02 17:22:58 -07:00
David Tolnay
14446af537
Fix "variable does not need to be mutable" warning 2016-09-02 11:42:33 -07:00
David Tolnay
248d937f9a
Release 0.8.6 2016-09-01 22:06:27 -07:00
David Tolnay
ffa2f80186 Merge pull request #530 from serde-rs/derive
Macros 1.1
2016-09-01 21:59:32 -07:00
David Tolnay
ac1128a647
Update serde_derive to 0.8.5 2016-09-01 21:28:58 -07:00
David Tolnay
88d845c4d1
Include! test suite for serde_derive 2016-09-01 21:28:40 -07:00
David Tolnay
87a402a751
Remove rustc_macro test crate 2016-09-01 11:17:35 -07:00
David Tolnay
cdb0e6c899
Remove build script in favor of rust-lang/cargo#3064 2016-08-31 21:05:40 -07:00
David Tolnay
54cee86fd3
Bump to 0.8.5 2016-08-31 20:14:44 -07:00
David Tolnay
178edd1abc
Merge branch origin/master into origin/derive 2016-08-31 20:12:46 -07:00
David Tolnay
4bb9279074
Bump syntex to 0.43 2016-08-31 12:53:27 -07:00
David Tolnay
3c45e5c7a5
Next iteration 2016-08-30 23:55:08 -07:00
David Tolnay
d36f28971c
Support no_std in forward_to_deserialize macro 2016-08-29 00:27:11 -07:00
David Tolnay
d914fdf67b
Macros 1.1 2016-08-28 22:21:25 -07:00
David Tolnay
7014c105b4
Remove coverage shield 2016-08-28 08:39:53 -07:00
David Tolnay
f3d566af09
Remove clippy shield 2016-08-28 08:37:55 -07:00
David Tolnay
278e8eb720
Add deserialize_seq methods to MapDeserializer 2016-08-25 10:45:25 -04:00
David Tolnay
e9b04de9a5
Impl SeqVisitor for MapDeserializer 2016-08-25 10:12:23 -04:00
David Tolnay
2a2891d54b
Expose forward_to_deserialize macro 2016-08-24 00:16:22 -04:00
David Tolnay
123e040189 Merge pull request #524 from serde-rs/skeptic
Remove skeptic
2016-08-23 22:17:13 -04:00
David Tolnay
6f0f273d9c
Remove skeptic 2016-08-23 22:04:50 -04:00
David Tolnay
fb7ba225d1
Add constructors for Bytes and ByteBuf
This commit adds `Bytes::new(&[u8])` and `ByteBuf::from<T: Into<Vec<u8>>>(T)`.
2016-08-23 16:24:00 -04:00
David Tolnay
d690ffda8d
Release 0.8.4 2016-08-22 11:37:53 -04:00
David Tolnay
18a775277f Merge pull request #514 from nox/maps
Introduce MapDeserializer::unbounded (fixes #512)
2016-08-22 09:05:50 -04:00
Anthony Ramine
fbb250766d Introduce MapDeserializer::unbounded (fixes #512) 2016-08-22 09:11:10 +02:00
David Tolnay
71116b860a Merge pull request #513 from nox/cow
Implement ValueDeserializer for Cow<str>
2016-08-21 14:07:56 -04:00
Anthony Ramine
ce3f134145 Implement ValueDeserializer for Cow<str> 2016-08-21 19:52:13 +02:00
David Tolnay
80507d650c Merge pull request #511 from serde-rs/extra
Switch to syntex::with_extra_stack
2016-08-19 21:27:17 -04:00
David Tolnay
0ae61a3dd1
Switch to syntex::with_extra_stack 2016-08-19 21:09:55 -04:00
David Tolnay
5fb73073bd
Release 0.8.3 2016-08-19 13:11:59 -04:00
David Tolnay
63d484d50c Merge pull request #510 from serde-rs/clippy
Re-enable clippy
2016-08-19 13:01:24 -04:00
David Tolnay
f3f29f81bc
Fix new lints 2016-08-19 12:46:45 -04:00
David Tolnay
621588b258
Revert "Disable clippy until Manishearth/rust-clippy#1174 is fixed"
This reverts commit 2bc1d62e50.
2016-08-19 11:47:31 -04:00
Homu
7aba920dec Auto merge of #509 - serde-rs:cow, r=oli-obk
Fix codegen with lifetimes but no type parameters

Fixes #507.
2016-08-20 00:16:54 +09:00