David Tolnay
8dba87661b
Bump serde_codegen_internals because it failed to publish somehow
2016-11-19 11:47:19 -08:00
David Tolnay
17fb4cb503
Release 0.8.18
2016-11-19 11:40:00 -08:00
David Tolnay
5bd0386b8e
Merge pull request #618 from serde-rs/up
...
Ask proc_macro_derive to ignore serde attributes
2016-11-19 14:19:15 -05:00
David Tolnay
8b484c9703
Hide the serde_codegen functions from docs
2016-11-15 21:37:19 -05:00
David Tolnay
a16f07858b
Ask proc_macro_derive to ignore serde attributes
2016-11-15 21:29:34 -05:00
David Tolnay
133d117bf4
Bump post-expansion dependency
2016-11-07 11:16:14 -08:00
David Tolnay
e7f3a80867
Update serde codegen to syn 0.10
2016-11-02 22:58:55 -07:00
David Tolnay
f8c3d225a3
Shorten the syn meta item matches
2016-11-02 22:56:27 -07:00
David Tolnay
6d40d9e8ec
Update codegen internals to syn 0.10
2016-11-02 22:52:20 -07:00
David Tolnay
c91fca19e1
Release 0.8.17
2016-11-02 09:26:04 -07:00
David Tolnay
f13a805530
Merge pull request #605 from serde-rs/up
...
Bump syntex to 0.48
2016-11-02 09:24:55 -07:00
David Tolnay
54802983b8
Bump syntex to 0.48
2016-11-02 09:12:22 -07:00
David Tolnay
f430d9d1c8
Remove unneeded type ascription
2016-10-23 21:06:50 -07:00
David Tolnay
c9612a2f57
Release 0.8.16
2016-10-22 00:07:27 -07:00
David Tolnay
7ffea5a716
Bump syntex to 0.46
2016-10-21 23:38:27 -07:00
David Tolnay
c8c9f7d96c
Merge pull request #599 from TheCatPlusPlus/master
...
Explictly discard result of visiting IgnoredAny
2016-10-21 23:36:57 -07:00
David Tolnay
9acb17ab54
Release 0.8.15
2016-10-20 08:42:40 -07:00
David Tolnay
f15ff1868e
Merge pull request #597 from serde-rs/cov
...
Drop coveralls
2016-10-20 00:44:19 -07:00
David Tolnay
86f0d0382f
Drop coveralls
...
Has not been uploading for months.
2016-10-20 00:33:03 -07:00
David Tolnay
8595b25763
Merge pull request #592 from serde-rs/post
...
Use post-expansion crate to let other custom derives see serde attrs
2016-10-20 00:18:23 -07:00
David Tolnay
49aca521f1
Bump post-expansion dependency
2016-10-20 00:01:14 -07:00
David Tolnay
4c38bd0180
Merge branch origin/master into origin/post
2016-10-19 23:59:53 -07:00
David Tolnay
a8d1c0253a
Merge pull request #593 from serde-rs/rmbench
...
Remove benchmarks
2016-10-19 00:48:05 -07:00
David Tolnay
bb5370b746
No longer need e!
2016-10-19 00:30:23 -07:00
David Tolnay
536e78a146
Remove benchmarks
...
Nobody noticed these did not compile for 3 months, so I am guessing nobody
cares. The JSON benchmarks at https://github.com/serde-rs/json-benchmark are
much more relevant.
2016-10-18 22:19:10 -07:00
David Tolnay
21c9446890
Update benchmarks to serde 0.8
2016-10-18 22:15:54 -07:00
David Tolnay
1b42f3f594
Release 0.8.14
2016-10-18 21:42:39 -07:00
David Tolnay
cafa02d9b4
Merge pull request #591 from serde-rs/sess
...
Not safe to share Spans from one ParseSess to another
2016-10-18 21:41:05 -07:00
David Tolnay
a9b6cbb8b3
Use post-expansion crate to let other custom derives see serde attrs
2016-10-18 09:00:33 -07:00
David Tolnay
1d719b542c
Not safe to share Spans from one ParseSess to another
...
Spans in the AST returned by `parse_item_from_source_str` and other parsing
functions contain byte offsets into the source code they were parsed from. The
pretty printer uses these Spans [here][1] to preserve the representation of
literals when parsing and printing back out unmodified.
In this bug, the byte offset of a string in the input to
`parse_item_from_source_str` coincidentally matched the byte offset of a totally
different string in the input to `parse_crate_from_file` called [here][2] by
Syntex. The Span from the former triggered the pretty printer to write out the
content of the latter.
By using the same ParseSess, Spans from the two `parse_*` calls never collide.
[1]: https://github.com/rust-lang/rust/blob/1.12.0/src/libsyntax/print/pprust.rs#L628
[2]: https://github.com/serde-rs/syntex/blob/v0.45.0/syntex/src/registry.rs#L134
2016-10-17 23:12:32 -07:00
David Tolnay
532b950971
Release 0.8.13
2016-10-16 10:34:26 -07:00
David Tolnay
0b19608d85
Merge pull request #584 from serde-rs/array-tuple
...
Array and tuple deserialization cleanup
2016-10-14 08:43:08 -07:00
David Tolnay
99bddddd8e
Array and tuple deserialization cleanup
2016-10-14 00:15:24 -07:00
David Tolnay
85c95040b3
Release 0.8.12
2016-10-08 15:38:29 -07:00
David Tolnay
339c0f5493
Remove unneeded test feature
2016-10-08 15:36:46 -07:00
David Tolnay
b4d5c26f4e
Update to latest syn and quote
2016-10-08 15:36:02 -07:00
David Tolnay
f4e1ffa2cb
Merge pull request #578 from mjroghelia/rename_rustc_macro
...
Rename rustc_macro to proc_macro
2016-10-08 15:35:15 -07:00
David Tolnay
e547a06639
Simplify deserialize_field_visitor
2016-10-03 13:45:11 -07:00
David Tolnay
c61b20cceb
Release 0.8.11
2016-10-03 13:38:52 -07:00
David Tolnay
42987a5b24
Fix break in quote 0.2.2
2016-10-03 13:37:46 -07:00
David Tolnay
3f28a93240
Update readme to serde_derive
2016-09-29 09:21:01 -07:00
David Tolnay
9970084550
Merge pull request #568 from tbu-/pr_ipaddr_stable
...
Allow the use of `IpAddr` implementations on stable
2016-09-29 08:58:33 -07:00
David Tolnay
22690cedc2
Merge pull request #566 from serde-rs/del
...
Delete serde_macros
2016-09-28 13:32:02 -07:00
David Tolnay
b27039d34d
Compiletest error messages
2016-09-28 12:46:54 -07:00
David Tolnay
1b6fd5a362
Delete serde_macros
2016-09-28 11:59:25 -07:00
David Tolnay
8b7b886036
Test serde_derive instead of serde_macros
2016-09-28 11:19:27 -07:00
David Tolnay
2a2c098eeb
Release 0.8.10
2016-09-28 09:56:15 -07:00
David Tolnay
f68f32d3ee
Merge pull request #564 from serde-rs/cleanup
...
Clean up syn workarounds
2016-09-28 09:48:45 -07:00
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
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
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
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
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
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