TheSchemm
2f8e87cd88
Basic support for enum attribute serialization
2022-05-04 20:36:59 -05:00
Ephraim Kunz
7148ec67c5
Fix clippy warnings and build with heck 0.4
2022-01-07 08:39:25 -08:00
David Stangl
ae0a310d1f
Hide re-exported xml and log crates from docs
2021-07-24 12:10:41 +02:00
Oscar Beaumont
979ea4c23d
removed need for xml-rs and log in projects using yaserde
2021-06-29 02:45:30 +08:00
Marc-Antoine Arnaud
1fb21c2bf6
minor updates regarding clippy analysis
2021-05-31 08:27:43 +02:00
Ephraim Kunz
269975d953
Use fully qualified method names to prevent collisions with serde derive macros
2021-02-05 19:26:54 -08:00
Jonas Platte
12ddcdbc87
Use absolute paths in generated code
...
With this, the derives should work with most of the crates and types
the generated code refers to being aliased.
Notably, methods are still mostly invoked using regular method syntax
so those coming from trait could still be aliased by outside code.
2020-12-17 17:50:16 +01:00
Jonas Platte
52fb60ec8b
Remove most extern crate statements from yaserde_derive
...
yaserde_derive is an edition 2018 crate, so these are not necessary.
2020-12-17 17:48:26 +01:00
Marc-Antoine Arnaud
7569408245
support flatten attributes
2020-06-07 15:16:46 +02:00
Marc-Antoine Arnaud
0872461c41
continue to refactor code using common Field structure
2020-04-22 18:18:11 +02:00
Marc-Antoine Arnaud
f69d5e75b3
implement common default skip content serializer
2020-04-21 18:01:03 +02:00
Marc-Antoine Arnaud
04ddaa29dc
restructure code
2020-04-21 15:02:34 +02:00
Marc-Antoine Arnaud
1c9ee67ace
reformat more code
2020-04-19 16:34:39 +02:00
Marc-Antoine Arnaud
fbc329e2be
reorgonize some code
2020-04-19 16:23:11 +02:00
Marc-Antoine Arnaud
856e271f7f
support root flatten deserialization
2020-04-19 10:57:40 +02:00
Marc-Antoine Arnaud
7b53515736
add flatten support for root elements (Enum and Structs)
2020-04-19 10:00:06 +02:00
Marc-Antoine Arnaud
da353bdd4f
serialize more types, add related unit tests
2020-04-06 16:19:50 +02:00
Marc-Antoine Arnaud
a93d70831f
use rust 2018 syntax, remove unused headers
2020-04-06 14:04:12 +02:00
Marc-Antoine Arnaud
4e03b57723
start to support skip serializing if feature
...
issue #43
2020-02-25 13:35:13 +01:00
Marc-Antoine Arnaud
dc79806128
add default_namespace attribute
...
issue #45
2020-02-24 14:47:18 +01:00
Dmitry Samoylov
f9e8d91590
Use actual spans instead of Span::call_site()
2020-02-04 19:56:22 +07:00
Dmitry Samoylov
703a238d02
Simplify tokenstream folding
2020-02-04 17:47:14 +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
Dmitry Samoylov
95f826b41f
Add serialization for enums with unnamed fields ( #8 )
2019-12-30 22:38:45 +07:00
Marc-Antoine Arnaud
28c13f5861
skip serialization if value equals to default
2018-12-07 10:21:59 +01:00
Marc-Antoine Arnaud
bd4bd3f495
deserialize with default
...
issue #9
2018-12-06 00:21:54 +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
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
e2923711c6
remove deprecated methods
2018-05-29 16:39:10 +02:00
Marc-Antoine Arnaud
9db35415a0
update format
2018-05-25 09:43:44 +02:00
Marc-Antoine Arnaud
e691fba686
update dependencies
2018-05-25 09:43:15 +02:00
Marc-Antoine Arnaud
416ffeec12
update with clippy errors
2018-05-24 08:27:03 +02:00
Marc-Antoine Arnaud
c87d0faa02
remove clippy messages to clean code
2018-05-23 17:40:53 +02:00
Marc-Antoine Arnaud
d63e9d27d8
update code format
2018-05-23 17:14:53 +02:00
Marc-Antoine Arnaud
07a258f8fc
support de/ser-ialization with namespace
2018-05-13 17:43:36 +02:00
Marc-Antoine Arnaud
0540b127bd
refactoring code to better support
2018-05-13 09:51:28 +02:00
Marc-Antoine Arnaud
6adbd71ebb
start to deserialize enum
2018-04-29 15:16:28 +02:00
Marc-Antoine Arnaud
5c3910c420
Serialize Enum
2018-04-10 15:06:50 +02:00