| Crates.io | xsd-parser-types |
| lib.rs | xsd-parser-types |
| version | 0.1.2 |
| created_at | 2025-12-11 21:46:08.867176+00 |
| updated_at | 2025-12-11 22:24:25.989654+00 |
| description | Types used by the code generated by xsd-parser |
| homepage | https://github.com/Bergmann89/xsd-parser |
| repository | https://github.com/Bergmann89/xsd-parser |
| max_upload_size | |
| id | 1980632 |
| size | 165,375 |
Types and helpers used by the code generated by
xsd-parser.
xsd-parser-types contains the runtime types that generated code from
xsd-parser depends on. It is split out
into a separate crate to keep the main code generator light on dependencies and
to make it easier for downstream crates to control their own runtime stack.
The crate provides:
AsAny, WithNamespace)xs:any, xs:anyAttribute, mixed text)quick-xml-based serialization and
deserialization (incl. optional async support)If you use xsd-parser to generate Rust code, you must also depend on
xsd-parser-types in your own crate and enable the correct feature flags.
Generated code will reference the runtime types from this crate, and missing
features will lead to compile-time errors.
In short: generated code requires xsd-parser-types as a direct dependency
with the same feature flags that were active during code generation.
[dependencies]
xsd-parser-types = { version = "0.1", features = [ "xml", "async", "quick-xml" ] }
Available features:
xml - enables the unstructured XML typesasync - adds async deserializer reader supportquick-xml - enables serialization/deserialization supportMost users do not need to enable features manually, xsd-parser will automatically do this.
This crate is licensed under the MIT License.