Skip to content

Commit 6662813

Browse files
authored
Merge pull request #154 from pbs-data-solutions/quick-xml
Handle larger XML files without memory errors.
2 parents a826046 + 4e6c069 commit 6662813

File tree

8 files changed

+1117
-174
lines changed

8 files changed

+1117
-174
lines changed

Cargo.lock

Lines changed: 13 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ python = ["dep:pyo3"]
1717
[dependencies]
1818
chrono = { version = "0.4.41", features = ["serde"] }
1919
pyo3 = { version = "0.26.0", optional = true }
20+
quick-xml = { version = "0.38.3", features = ["serde", "serialize"] }
2021
serde = { version = "1.0.219", features = ["derive"] }
21-
serde-xml-rs = "0.8.1"
2222
serde_json = "1.0.143"
2323
thiserror = "2.0.16"
2424

src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub enum Error {
2020

2121
/// A parsing error occurred.
2222
#[error(transparent)]
23-
ParsingError(#[from] serde_xml_rs::Error),
23+
ParsingError(#[from] quick_xml::de::DeError),
2424

2525
/// An unknown error occurred.
2626
#[error("Unknown error")]

src/lib.rs

Lines changed: 699 additions & 70 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)