Commit Graph

167 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
Marc-Antoine ARNAUD
389077e17c
Merge pull request #46 from DmitrySamoylov/fix-nested-namespaces
Fix (de)serialization for elements with nested namespaces
2020-02-18 10:47:36 +01:00
Dmitry Samoylov
4aadc78fc1 Fix (de)serialization for elements with nested namespaces 2020-02-18 15:56:09 +07:00
Marc-Antoine Arnaud
1cda7cda70 fix format 2020-02-16 11:55:43 +01: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
Marc-Antoine ARNAUD
c22427fc57
Merge pull request #44 from media-io/DmitrySamoylov-fix-element-clashes
Complete unit test
2020-02-16 11:24:45 +01:00
Marc-Antoine ARNAUD
c122b66052
Merge pull request #41 from DmitrySamoylov/fix-element-clashes
Add skipping of unrecognized elements (fixes #12)
2020-02-16 11:24:21 +01:00
Marc-Antoine Arnaud
617c940020 complete unit test 2020-02-16 11:22:57 +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
Marc-Antoine ARNAUD
df674965f8
Merge pull request #38 from DmitrySamoylov/feature-attribute-option
Add support for Option<struct> in 'attribute' fields
2020-02-12 11:36:04 +01:00
Dmitry Samoylov
cad7f88c4e Add support for Option<struct> in 'attribute' fields 2020-02-12 15:45:30 +07:00
Marc-Antoine ARNAUD
264fa06b8b
Merge pull request #37 from DmitrySamoylov/bump-version-0.3.11
Bump version to 0.3.11
2020-02-06 15:16:34 +01:00
Dmitry Samoylov
fd8257e047 Bump version to 0.3.11 2020-02-06 18:01:26 +07:00
Marc-Antoine ARNAUD
8cc97f90ef
Merge pull request #36 from DmitrySamoylov/feature-flatten
Feature flatten (closes #2)
2020-02-06 10:25:42 +01:00
Dmitry Samoylov
c58fee0df1 Update readme 2020-02-06 15:55:38 +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
Marc-Antoine ARNAUD
6cf86c4e8e
add new rust versions (1.40 and 1.41) 2020-02-04 14:38:27 +01:00
Marc-Antoine ARNAUD
1595d3c641
Merge pull request #35 from DmitrySamoylov/refactoring
Refactoring
2020-02-04 14:37:27 +01: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
Marc-Antoine ARNAUD
d68a924bdb
Merge pull request #34 from DmitrySamoylov/fix-dots-in-names
Fix compilation errors when element name contains dots
2020-02-04 10:49:15 +01:00
Dmitry Samoylov
688ab0b160 Fix compilation errors when element name contains dots 2020-02-04 15:18:09 +07:00
Marc-Antoine ARNAUD
6bbb9676d0
Merge pull request #33 from DmitrySamoylov/fix-unnamed-enum-namespace-prefix
Fix unnamed enum variants ignored namespace prefix while serializing
2020-01-20 16:48:14 +01:00
Dmitry Samoylov
f1c7818656 Fix unnamed enum variants serialized ignoring namespace prefix 2020-01-20 17:55:51 +07:00
Marc-Antoine ARNAUD
f8ffe8c88e
Merge pull request #32 from DmitrySamoylov/fix-custom-serializer
Fix custom serializer
2020-01-16 09:18:26 +01:00
Dmitry Samoylov
042d6fd33b Fix warnings 2020-01-15 18:24:51 +07:00
Dmitry Samoylov
553e309a0f Add examples for custom (de)serialization (#25) 2020-01-15 18:24:28 +07:00
Dmitry Samoylov
7d8923a785 Make custom serializer be called only once (#25) 2020-01-15 18:23:29 +07:00
Marc-Antoine Arnaud
4b5a28f80e Merge branch 'master' of github.com:media-io/yaserde 2020-01-09 09:08:18 +01:00
Marc-Antoine Arnaud
1bdc7200ff bump to 0.3.10 2020-01-09 09:07:41 +01:00
Marc-Antoine ARNAUD
4f9057ee40
Merge pull request #31 from media-io/MarcAntoine-Arnaud-patch-1
Update README.md
2020-01-08 15:14:00 +01:00
Marc-Antoine ARNAUD
3e84b322c9
Update README.md 2020-01-08 12:23:37 +01:00
Marc-Antoine ARNAUD
3771a95feb
Merge pull request #30 from DmitrySamoylov/feature-complex-enum
(De)serializtion for enums with unnamed fields
2020-01-08 12:21: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
superuzir
a68bbd81b9 Add more test cases to de_complex_enum(#8) 2019-12-31 13:25:04 +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
Marc-Antoine ARNAUD
90f19a3a5e
Merge pull request #29 from DmitrySamoylov/fix-name-issue
Allow struct fields be named as 'name' (issue #21)
2019-12-10 10:04:25 +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
2a3716c828
Merge pull request #28 from media-io/update_dependencies
update dependencies
2019-12-05 09:42:25 +01:00