prelude-xml-parser 0.11.0

Deserialize Prelude EDC native XML files into Rust stucts.
Documentation

Prelude XML Parser

Tests Status crates.io

Deserialize Prelude EDC native XML files into Rust structs. Enabling the python feature allows deserializing to Python classes with PyO3.

Supported native files

  • Subject native XML
  • Site Native XML
  • User Native XML

Benchmarks

Benchmarks are run with criterion and cover all three parsers, in both their _string and _file forms, across a range of input sizes. Inputs are generated at run time by replicating the fixtures in tests/assets/, so no extra setup is needed:

just bench

An HTML report is written to target/criterion/report/index.html.

For a faster measurement that stops as soon as the significance level is reached (~20s instead of several minutes):

just bench-quick

To only check that the benchmarks still run, without measuring anything:

just bench-smoke

To additionally benchmark against a real subject native export, point BENCH_XML_FILE at it:

BENCH_XML_FILE=/path/to/subject_native.xml cargo bench