Commit Graph

36 Commits

Author SHA1 Message Date
Jonas Platte
d3ee4112e3
Clean up visitor code generation 2020-12-17 17:50:16 +01: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
marcelbuesing
701b92a2a4
Enforce std String in macros to avoid collisions 2020-08-03 20:28:53 +02:00
Scott Lamb
c889461eef improve logging in deserialize path and tests
* Log the depth of elements as they're fetched
* Log the starting depth of structs/enums and their Rust symbol names
  (not just XML element names, which may differ significantly)
* Log every element in the struct/enum match loop at trace level.
* Log file/line numbers at a few key points in the tests.
  This is helpful in finding failures happen in some of the longer
  tests.

This logging helps me understand the data flow as I play with changes
for #76.
2020-06-20 06:27:19 -07:00
Marc-Antoine Arnaud
f3c42a4d9e improve library 2020-05-08 14:42:43 +02:00
Marc-Antoine Arnaud
dfaa69071d fix namespace check on deserilization of enum 2020-04-29 19:13:32 +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
04ddaa29dc restructure code 2020-04-21 15:02:34 +02:00
Marc-Antoine Arnaud
856e271f7f support root flatten deserialization 2020-04-19 10:57:40 +02:00
Marc-Antoine Arnaud
2c632fe0ee Merge branch 'master' of github.com:media-io/yaserde into fix_default_namespace_prefix 2020-04-06 14:42:33 +02:00
Marc-Antoine Arnaud
a93d70831f use rust 2018 syntax, remove unused headers 2020-04-06 14:04:12 +02:00
Dmitry Samoylov
d262bc998f Refactor reader 2020-04-06 18:12:17 +07:00
Dgame
c05e822865 Added explicit use log::debug 2020-03-29 20:36:30 +02: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
superuzir
9bc1cfd5ea Fix clippy warning 2019-12-31 14:40:49 +07:00
Dmitry Samoylov
d277d5137b Add deserialization for enums with values (#8) 2019-12-27 20:37:56 +07:00
Marc-Antoine Arnaud
29e6736d8d format code 2019-10-08 09:04:29 +02:00
Marc-Antoine Arnaud
28c13f5861 skip serialization if value equals to default 2018-12-07 10:21:59 +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
266b77428b support Option type value 2018-05-29 16:20:18 +02:00
Marc-Antoine Arnaud
ef37615458 add floating point de/ser-ialization 2018-05-28 17:40:00 +02:00
Marc-Antoine Arnaud
42369b06a9 remove double reference argument 2018-05-25 12:42:53 +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
bbca68f2ee update from clippy errors 2018-05-23 18:09:11 +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
a88f6535f4 support type de/ser-rialization 2018-05-23 16:59:31 +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