David Tolnay
6ccb6c9130
Clean up syn workarounds
2016-09-28 09:29:12 -07:00
David Tolnay
49d24a1377
Merge pull request #548 from serde-rs/syn
...
No more syntex for serde_derive
2016-09-28 09:28:48 -07:00
David Tolnay
b0eee50947
Merge branch origin/master into origin/syn
...
Conflicts:
serde_macros/tests/compile-fail/reject-unknown-attributes.rs
2016-09-28 09:27:04 -07:00
David Tolnay
554b81d636
Fix compiletest error in newest nightly
2016-09-28 09:25:19 -07:00
David Tolnay
9fe16767c5
Use iter::repeat to build phantom exprs
2016-09-28 08:57:53 -07:00
David Tolnay
3a3777a2fb
Merge branch origin/master into origin/syn
...
Conflicts:
serde_codegen/Cargo.toml
2016-09-27 09:59:36 -07:00
David Tolnay
effa298871
Fix differences in the generated code
2016-09-27 09:56:35 -07:00
David Tolnay
9a86e6818f
Use push_str to support old compilers
2016-09-27 00:47:54 -07:00
David Tolnay
7d09b1475c
Fix clippy lints in serde_codegen
2016-09-27 00:46:03 -07:00
David Tolnay
7e441e5110
Handle various attribute parsing error cases
2016-09-27 00:40:37 -07:00
David Tolnay
40b874214a
Update tests to new location of errors
2016-09-27 00:17:00 -07:00
David Tolnay
0c18c151e2
Revamp serde_codegen_internals error handling
2016-09-27 00:11:37 -07:00
David Tolnay
4ad6c4fd56
Include unknown attribute name in error message
2016-09-27 00:02:15 -07:00
David Tolnay
8ee8c07090
Mark all serde attributes as used
2016-09-26 23:17:43 -07:00
David Tolnay
8e77960e3a
Remove with-libsyntax feature
2016-09-26 23:17:33 -07:00
David Tolnay
819d47fea2
Merge pull request #560 from serde-rs/up
...
Bump quasi and aster
2016-09-26 22:23:18 -07:00
David Tolnay
8e865f62c4
Fix conflicts with the __serde_state commit
2016-09-26 22:13:53 -07:00
David Tolnay
6cbf0d32da
Merge branch origin/master into origin/syn
...
Conflicts:
serde_codegen/src/ser.rs
2016-09-26 22:11:14 -07:00
David Tolnay
20afa85087
Bump quasi and aster
2016-09-26 22:08:21 -07:00
David Tolnay
da6d967776
Merge pull request #558 from erickt/fix-serde-state
...
Make serde state variable unique by naming it __serde_state
2016-09-26 21:58:45 -07:00
Erick Tryzelaar
f47a50e996
Make serde state variable unique by naming it __serde_state
...
Closes #557
2016-09-26 21:44:30 -07:00
David Tolnay
1eca7766ba
Bump syn dependency
2016-09-24 09:54:10 -07:00
David Tolnay
51f95575ec
Merge branch origin/master into origin/syn
...
Conflicts:
serde_codegen/Cargo.toml
serde_codegen_internals/Cargo.toml
serde_derive/Cargo.toml
2016-09-24 09:29:21 -07:00
Oliver Schneider
429de89276
Release 0.8.9
2016-09-23 07:11:59 -07:00
David Tolnay
a69b82c7c5
Recursion limit
2016-09-12 01:26:47 -07:00
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