Commit Graph

2006 Commits

Author SHA1 Message Date
David Tolnay
67d86dcc4f Merge pull request #426 from serde-rs/display
impl Display for de::Type
2016-07-07 00:59:17 -07:00
David Tolnay
15764cb955
impl Display for de::Type 2016-07-06 23:33:59 -07:00
David Tolnay
97bc1e08e7
Release 0.7.13 2016-07-05 20:06:10 -07:00
Oliver Schneider
7ffb74f5bb Merge pull request #423 from dtolnay/seq
Close the seq before failing on invalid length
2016-07-05 22:44:52 +02:00
David Tolnay
f25e6d3ea9
Close the seq before failing on invalid length
Equivalent to what 0f9a930 does for maps.
2016-07-05 10:08:36 -07:00
David Tolnay
431cbe48b7 Merge pull request #422 from serde-rs/missing
Close the map before checking for missing fields
2016-07-05 07:11:03 -07:00
Homu
5405ab319d Auto merge of #421 - serde-rs:length, r=oli-obk
Invalid-length when enum seq is too short

Fixes https://github.com/serde-rs/json/issues/96.
2016-07-05 18:27:33 +09:00
David Tolnay
0f9a930c4f
Close the map before checking for missing fields 2016-07-05 01:42:38 -07:00
David Tolnay
1a449bb3d0
Invalid-length when enum seq is too short 2016-07-05 01:35:20 -07:00
David Tolnay
c0e8164792 Merge pull request #418 from serde-rs/expninfo
Record expansion info
2016-07-04 15:22:09 -07:00
David Tolnay
a3a7e4085f
Add run-pass test for expansion info 2016-07-04 15:02:15 -07:00
David Tolnay
149c87d7c2
Record expansion info 2016-07-03 10:53:33 -07:00
David Tolnay
5deba439c3 Merge pull request #417 from serde-rs/bump
Update syntex to 0.37
2016-07-03 08:53:56 -07:00
David Tolnay
d450de1482
Update syntex to 0.37 2016-07-02 20:20:44 -07:00
David Tolnay
47c7387279 Merge pull request #416 from dtolnay/filter
Remove filter no longer necessary for rustc >=1.7
2016-07-01 22:53:45 -07:00
David Tolnay
dc8d209f29
Remove filter no longer necessary for rustc >=1.7 2016-07-01 22:34:15 -07:00
David Tolnay
831802adc8 Merge pull request #407 from dtolnay/internals
Rename serde_item to serde_codegen_internals
2016-06-30 20:06:12 -07:00
David Tolnay
2d5a26dfc0
Rename serde_internals to serde_codegen_internals 2016-06-30 19:53:57 -07:00
David Tolnay
c6b6e2a5d9
Rename serde_item to serde_internals 2016-06-30 19:42:55 -07:00
Oliver Schneider
d1be5ef187 Merge pull request #412 from dtolnay/test
Move Token De/Serializer to serde_test crate
2016-06-29 10:05:36 +02:00
David Tolnay
f531be1524
Turn comments into doc comments 2016-06-29 00:58:33 -07:00
David Tolnay
10b1508d4a
Sync serde_test version with the other crates 2016-06-29 00:17:50 -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
8e87926bc2
Round out the Error variants 2016-06-28 22:57:53 -07:00
David Tolnay
d6a462b862
Add serde_test to dev dependencies of serde_macros 2016-06-28 22:50:58 -07:00
David Tolnay
cfc2f9adc0
Remove Error from name of Error variants 2016-06-28 22:49:13 -07:00
David Tolnay
00f94290a6
Add message to CustomError 2016-06-28 22:36:29 -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
David Tolnay
6ab508a93c
Release 0.7.11 2016-06-23 19:58:31 -07:00
David Tolnay
9f38c2ab59 Merge pull request #409 from knsd/patch-1
Fix typo
2016-06-23 09:52:50 -07:00
Fedor Gogolev
021ce5be88 Fix typo 2016-06-23 20:50:27 +04:00
Homu
f1f8b4622b Auto merge of #402 - erickt:clippy, r=erickt
Update link to clippy lint report
2016-06-23 12:52:36 +09:00
Erick Tryzelaar
1fb2172a25 Merge pull request #405 from erickt/rustup
Version bump the syntex stack
2016-06-22 20:34:15 -07:00
Erick Tryzelaar
5941f1d071 Version bump the syntex stack 2016-06-22 20:19:47 -07:00
Erick Tryzelaar
8d6cc4dfa5 Update link to clippy lint report 2016-06-22 10:13:28 -07:00
Erick Tryzelaar
18e077eda9 Add a contributing guide 2016-06-22 07:04:13 -07:00
Homu
c9e2e518ba Auto merge of #397 - dtolnay:item, r=oli-obk
Factor attr parsing into serde_item crate

Fixes #396. @KodrAus [let me know whether this fits the bill.](5c6a0e12e9/serde_item/src)

a few other changes to make the API a little more presentable:

- Rename attr::{ContainerAttrs,VariantAttrs,FieldAttrs} to remove the "Attrs" (I see you worked on the corresponding [clippy lint](https://github.com/Manishearth/rust-clippy/issues/904)).
- Rename attr::Container* to attr::Item to correspond with item::Item and ast::Item. The others already had a correspondence (attr::Variant/item::Variant/ast::Variant, attr::Field/item::Field/ast::Field). Also a unit struct isn't much of a "container."
- Change item::Item::from_ast to return a meaningful error enum instead of printing a message that was hard to generalize to other uses.
- Add item::Variant.span for consistency because Item and Field already had span.
- Remove the "ident" field from attr::Name because we can just fold it into the other two fields.
- Remove attr::Name::(de)serialize_name_expr because it wasn't using the right AstBuilder in the first place.
- Rename the attr:: constructors from_item/from_variant/from_field to from_ast to line up with the item:: constructors; the signatures match.
- Remove attr's dependency on aster because we were only using it for two very simple things.
2016-06-20 16:45:25 +09:00
David Tolnay
51042bde50
Remove ident from Name struct 2016-06-19 20:31:12 -07:00
David Tolnay
5c6a0e12e9
Factor attr parsing into serde_item crate 2016-06-19 20:15:49 -07:00
Homu
d4e1ef659a Auto merge of #389 - dtolnay:rule, r=oli-obk
Remove unused macro rule
2016-06-17 16:52:37 +09:00
David Tolnay
f5f35677f0
Remove unused macro rule 2016-06-17 00:06:11 -07:00
David Tolnay
90d9c77186 Merge pull request #385 from dtolnay/dup
Error on duplicate attributes
2016-06-17 00:02:04 -07:00
David Tolnay
882d130e19
Test duplicates within a single attribute 2016-06-16 23:45:34 -07:00
David Tolnay
5f84e601b6
Add explanation of ignored errors in attr.rs 2016-06-16 23:25:46 -07:00
David Tolnay
0bf6a17428 Merge pull request #387 from erickt/master
Extend tuple impls up to 16 elements
2016-06-16 09:47:58 -07:00
Erick Tryzelaar
db8881d845 Extend tuple impls up to 16 elements 2016-06-16 11:22:15 +01:00
David Tolnay
3403352749 Merge pull request #377 from dtolnay/travis
Remove some low-risk travis builds
2016-06-15 08:54:04 -07:00