Thanks to visit codestin.com
Credit goes to lib.rs

#quick-xml #xsd #xml #generator #serde-xml-rs

xsd-parser-types

Types used by the code generated by xsd-parser

5 releases

0.2.1 Mar 25, 2026
0.2.0 Mar 6, 2026
0.1.2 Dec 11, 2025
0.1.1 Dec 11, 2025
0.1.0 Dec 11, 2025

#2199 in Encoding

Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App

5,403 downloads per month
Used in 4 crates (2 directly)

MIT license

205KB
5K SLoC

xsd-parser-types

Types and helpers used by the code generated by xsd-parser.

Crates.io License Crates.io Version Crates.io Total Downloads docs.rs Github CI Dependency Status


Overview

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:

  • small utility traits (AsAny, WithNamespace)
  • helper types for XML namespaces and raw byte handling
  • types for unstructured XML content (xs:any, xs:anyAttribute, mixed text)
  • helper traits and adapters for 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.

Features

[dependencies]
xsd-parser-types = { version = "0.1", features = [ "xml", "async", "quick-xml" ] }

Available features:

  • xml - enables the unstructured XML types
  • async - adds async deserializer reader support
  • quick-xml - enables serialization/deserialization support

Most users do not need to enable features manually, xsd-parser will automatically do this.

License

This crate is licensed under the MIT License.

Dependencies

~0–2.8MB
~63K SLoC