olvyko
cb25872cde
Add test for attribute with skip_serialize_if
2021-04-29 22:10:52 +06:00
olvyko
0139d63f6d
Alter yaserde_derive crate to support skip_serialize_if for attributes
2021-04-29 21:39:47 +06:00
Marc-Antoine ARNAUD
fb19a35d43
Merge pull request #107 from brainstorm/prettyprint
...
XML prettyprint documentation
2021-02-12 21:25:29 +01:00
Roman Valls Guimera
65187ff78b
fmt
2021-02-11 19:53:16 +11:00
Roman Valls Guimera
9bbb1a6cc9
XML prettyprint documentation
2021-02-11 19:50:56 +11:00
Marc-Antoine Arnaud
e84d92a864
fix dev link version
2021-02-08 14:44:27 +01:00
Marc-Antoine Arnaud
07a78563e6
fix version link
2021-02-08 14:42:54 +01:00
Marc-Antoine Arnaud
082cc0d953
bump to 0.6.0
2021-02-08 14:39:49 +01:00
Marc-Antoine Arnaud
019b7c10ff
use f32::EPSILON from std for rust version < 1.43
2021-02-08 14:16:16 +01:00
Marc-Antoine Arnaud
df49bff4be
Merge branch 'brainstorm-serialize_docs_svd_example'
2021-02-08 14:11:24 +01:00
Marc-Antoine Arnaud
6492efcfdc
improve contribution to add examples, fix some clippy warns
2021-02-08 14:10:08 +01:00
Roman Valls Guimera
a65fa84f75
@MarcAntoine-Arnaud, the local link path breaks CI if I add examples in the workspace
2021-02-08 22:53:01 +11:00
Roman Valls Guimera
e506cb1e92
Add in the prettyprinting bit in the svd example, which still doesn't work yet properly in master.
2021-02-08 22:42:55 +11:00
Roman Valls Guimera
4f52732a71
Ignore this rust(doc) code, thanks https://doc.rust-lang.org/rustdoc/documentation-tests.html#attributes
2021-02-08 22:33:26 +11:00
Roman Valls Guimera
3ffdd9bdcd
Rust 1.36 and 1.37 are ancient history ;P
2021-02-08 22:19:21 +11:00
Roman Valls Guimera
69cccbc4b8
Use local link path for examples
2021-02-08 22:18:44 +11:00
Roman Valls Guimera
9ba62812c6
Remove sub-sub projects, thx @MarcAntoine-Aranaud ;)
2021-02-08 22:18:44 +11:00
Roman Valls Guimera
037dd58453
Restructured as @MarcAntoine-Arnaud suggested: examples workspace, more amenable to CI and examples are easier to find than in https://github.com/media-io/yaserde_examples
2021-02-08 22:18:44 +11:00
Roman Valls Guimera
e17dbbb605
Migrate yaserde examples from its own repo to its main one: https://github.com/media-io/yaserde_examples
2021-02-08 22:18:44 +11:00
Roman Valls Guimera
e412777f36
Avoid rustdoc testing the code under rust crate-level block
2021-02-08 22:18:44 +11:00
Roman Valls Guimera
db005b568f
Cargo fmt
2021-02-08 22:18:44 +11:00
Roman Valls Guimera
d8d84313df
Initial serialize documentation, showcasing XML attributes and children. Left to document or fix are: dependencies and pretty-printing
2021-02-08 22:18:44 +11:00
Marc-Antoine Arnaud
e326a978fd
update supported rust version
2021-02-08 12:04:27 +01:00
Marc-Antoine Arnaud
63c28f4ab8
update travis link (use now .com)
2021-02-08 12:03:29 +01:00
Marc-Antoine Arnaud
083c9b9ac5
Merge branch 'djrodgerspryor-master'
2021-02-08 11:43:43 +01:00
Marc-Antoine Arnaud
b5451dfadb
update syntax
2021-02-08 11:43:22 +01:00
Marc-Antoine Arnaud
0dc03c94ab
Merge branch 'master' of https://github.com/djrodgerspryor/yaserde into djrodgerspryor-master
2021-02-08 11:39:57 +01:00
Marc-Antoine ARNAUD
44854b0d4d
Merge pull request #105 from ephraimkunz/serialize-conflict
...
Use fully qualified method names to prevent collisions with serde derive macros
2021-02-08 11:37:25 +01:00
Marc-Antoine ARNAUD
31093262b3
Merge pull request #102 from ephraimkunz/master
...
Prevent Yaserde from reading non #[yaserde(...)] attributes
2021-02-08 11:36:29 +01:00
Ephraim Kunz
269975d953
Use fully qualified method names to prevent collisions with serde derive macros
2021-02-05 19:26:54 -08:00
Ephraim Kunz
07c2106256
Add unit test for attribute filtering
2021-02-04 20:02:39 -08:00
Ephraim Kunz
7d2658adaf
Add filter to only look at 'yaserde' attributes
2021-02-04 19:45:34 -08:00
Daniel Rodgers-Pryor
4a015130a2
Actually support serializer formatting config
...
By passing the values through to xml-rs
2021-01-10 00:06:23 +11:00
Marc-Antoine Arnaud
fcab1c0245
bump to 0.5.1
2021-01-08 10:10:02 +01:00
Marc-Antoine Arnaud
040219067f
bump env_logger
2021-01-08 10:09:36 +01:00
Marc-Antoine Arnaud
79fd706666
fix version in dependency
2021-01-08 10:06:59 +01:00
Marc-Antoine Arnaud
2926e0b620
bump to 0.5.0
2021-01-08 10:05:50 +01:00
Marc-Antoine ARNAUD
2ee3dcda42
Merge pull request #97 from lumeohq/macro-refactor
...
Refactor macro code
2021-01-08 09:49:26 +01:00
Jonas Platte
a1fc2f9fad
Revert parts of "Use absolute paths in generated code"
...
to restore compatibility with older versions of Rust.
2020-12-17 18:32:06 +01:00
Jonas Platte
d19c57d23d
Replace String::from by .into() / .to_owned() / format!()
2020-12-17 17:53:16 +01:00
Jonas Platte
c455f12d23
Drop unnecessary qualification of String outside of generated code
2020-12-17 17:50:16 +01:00
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
Jonas Platte
c98845fc42
Remove redundant lib name from yaserde_derive/Cargo.toml
2020-12-02 15:48:10 +01:00
Marc-Antoine ARNAUD
15576efeb3
Merge pull request #93 from marcelbuesing/fix-keyword-in-label
...
Avoid breaking keywords in labels.
2020-10-12 09:03:07 +02:00
marcelbuesing
798455faa8
Avoid breaking keywords in labels.
...
Keywords such as `ref` previously lead to labels such as `__#ref__value`.
This should be `__ref__value`.
2020-10-07 10:13:52 +02:00
Marc-Antoine Arnaud
6e2930e2df
bump to 0.4.3
2020-08-26 23:33:12 +02:00
Marc-Antoine Arnaud
fc5625a5e4
parse bool as defined in xs:boolean
2020-08-26 23:32:24 +02:00
Marc-Antoine Arnaud
dc558a73e4
publish 0.4.2
2020-08-05 10:56:35 +02:00