Commit Graph

90 Commits

Author SHA1 Message Date
Marc-Antoine Arnaud
13d6db9280 add unit tests to parse attributes 2020-02-24 18:41:49 +01:00
Marc-Antoine Arnaud
dc79806128 add default_namespace attribute
issue #45
2020-02-24 14:47:18 +01:00
Dmitry Samoylov
4aadc78fc1 Fix (de)serialization for elements with nested namespaces 2020-02-18 15:56:09 +07:00
Marc-Antoine Arnaud
9272a5a684 bump to 0.3.12 2020-02-16 11:53:49 +01:00
Marc-Antoine ARNAUD
c15e289fec
Merge pull request #40 from DmitrySamoylov/refactoring
Refactoring
2020-02-16 11:25:25 +01:00
Dmitry Samoylov
1f3de44a98 Add skipping of unrecognized elements (fixes #12) 2020-02-13 19:34:47 +07:00
Dmitry Samoylov
476fd3790e Put struct and simple_type visitors close to each other 2020-02-12 19:38:02 +07:00
Dmitry Samoylov
20d7db6d73 Remove mem::transmute (closes #39) 2020-02-12 19:09:07 +07:00
Dmitry Samoylov
3e08dee3f4 Simplify de visitor generation 2020-02-12 18:37:42 +07:00
Dmitry Samoylov
cad7f88c4e Add support for Option<struct> in 'attribute' fields 2020-02-12 15:45:30 +07:00
Dmitry Samoylov
fd8257e047 Bump version to 0.3.11 2020-02-06 18:01:26 +07:00
Dmitry Samoylov
6063ff393a Implement flatten (ser) 2020-02-06 15:52:09 +07:00
Dmitry Samoylov
cc7cf76a45 Implement flatten (de) 2020-02-06 15:50:35 +07:00
Dmitry Samoylov
f9e8d91590 Use actual spans instead of Span::call_site() 2020-02-04 19:56:22 +07:00
Dmitry Samoylov
65838ced80 Reduce code duplication when handling simple types 2020-02-04 19:08:05 +07:00
Dmitry Samoylov
5a0f0e55a7 Remove unneeded Option's and unsafe's 2020-02-04 17:50:16 +07:00
Dmitry Samoylov
703a238d02 Simplify tokenstream folding 2020-02-04 17:47:14 +07:00
Dmitry Samoylov
688ab0b160 Fix compilation errors when element name contains dots 2020-02-04 15:18:09 +07:00
Dmitry Samoylov
f1c7818656 Fix unnamed enum variants serialized ignoring namespace prefix 2020-01-20 17:55:51 +07:00
Dmitry Samoylov
7d8923a785 Make custom serializer be called only once (#25) 2020-01-15 18:23:29 +07:00
Marc-Antoine Arnaud
1bdc7200ff bump to 0.3.10 2020-01-09 09:07:41 +01:00
superuzir
8079f00415 Fix more clippy warnings 2019-12-31 14:58:28 +07:00
superuzir
9bc1cfd5ea Fix clippy warning 2019-12-31 14:40:49 +07:00
Dmitry Samoylov
95f826b41f Add serialization for enums with unnamed fields (#8) 2019-12-30 22:38:45 +07:00
Dmitry Samoylov
d277d5137b Add deserialization for enums with values (#8) 2019-12-27 20:37:56 +07:00
Marc-Antoine Arnaud
a2bf70c5bd bump to 0.3.9 2019-12-15 12:44:20 +01:00
Dmitry Samoylov
85f461573b Allow struct fields be named as 'name' (issue #21) 2019-12-10 13:16:28 +07:00
Marc-Antoine Arnaud
9af780cb6b update dependencies 2019-12-05 09:15:31 +01:00
Dmitry Samoylov
5a81a5add8 Fix formatting 2019-12-05 14:29:20 +07:00
Dmitry Samoylov
ab03d32cfb Add support for field types with multiple PathSegment's 2019-12-04 20:52:21 +07:00
Marc-Antoine Arnaud
2b701262ac fix clippy feedbacks and format code 2019-10-08 10:19:50 +02:00
Marc-Antoine Arnaud
29e6736d8d format code 2019-10-08 09:04:29 +02:00
Marc-Antoine Arnaud
dd5ca6df6b update dependencies with 1.0 releases 2019-10-08 09:04:00 +02:00
Marc-Antoine Arnaud
54cf32c26d release v0.3.7 2019-01-12 11:57:16 +01:00
Marc-Antoine Arnaud
ae3f873d69 fix check namespace 2018-12-29 14:13:50 +01:00
Marc-Antoine Arnaud
7255e85925 improve error message for incorrect namespace item 2018-12-21 14:04:21 +01:00
Marc-Antoine Arnaud
381dd59ea0 bump to 0.3.6 2018-12-13 13:33:39 +01:00
Marc-Antoine Arnaud
28c13f5861 skip serialization if value equals to default 2018-12-07 10:21:59 +01:00
Marc-Antoine Arnaud
402b6fe421 update default support for all types 2018-12-06 08:57:05 +01:00
Marc-Antoine Arnaud
bd4bd3f495 deserialize with default
issue #9
2018-12-06 00:21:54 +01:00
Marc-Antoine Arnaud
2e74682880 bump to 0.3.5 2018-11-20 14:24:41 +01:00
Marc-Antoine Arnaud
fff6275f5a add attributes on option struct 2018-11-20 14:24:04 +01:00
Marc-Antoine Arnaud
04885c6605 bump to 0.3.4 2018-11-20 14:12:12 +01:00
Marc-Antoine Arnaud
20aae33c80 fix de-ser of option of struct 2018-11-20 14:11:37 +01:00
Marc-Antoine Arnaud
342dc3930d bump to 0.3.3 2018-11-20 12:49:22 +01:00
Marc-Antoine Arnaud
461b30b03c be able to use Option of struct and String 2018-11-20 12:48:26 +01:00
Marc-Antoine Arnaud
d90c14c2b8 bump to 0.3.2 2018-11-20 08:47:46 +01:00
Marc-Antoine Arnaud
dca18e2f82 update clippy and fix error messages 2018-11-05 17:30:21 +01:00
Marc-Antoine Arnaud
69a54eebcf format code 2018-11-05 17:17:27 +01:00
Marc-Antoine Arnaud
96bac71db5 serialize Vec and Option<Vec>
fix #5
2018-11-05 17:02:37 +01:00