👀 While it's loading, feel free to check out the other repositories:
🔔 To get a notification when it's ready, leave your email here:
By entering your email, you agree to receive notifications and marketing-related emails
Filter by reset
(De)serializing `xsi` attributes (`xsi:type`, `xsi:nil` etc.)
I'm currently working the following XML: <items> <Item xsi:type="Weapon">...</Item> <Item xsi:nil="true" /> <Item xsi:type="Shovel">...</Item> <Item xsi:nil="true" /> <Item xsi:nil="true" /> <Item xsi:nil="true" /> <Item xsi:type="Food">...</Item> </items …
furtidev · 2024-10-15 · 2 · #822
How would I parse character references as literal bytes and not codepoints?
Dekkonot · 2025-05-09 · 4 · #667
Mingun · 2023-10-16
Unwrap optional list of elements panic
I've been trying to adapt the elements list example in the "Frequently used patterns" section of the docs to unwrap an optional list of tags. Here is a minimal example: lib.rs use serde::{Deserialize, Serialize, de}; fn unwrap_abc_opt<'de, D>(deserializer …
synapticarbors · 2025-07-07 · 1 · #876
questionserde
Make BytesCData decode method public
mematthias · 2025-04-26 · 2 · #857
codecov-commenter · 2025-04-26
Fix: the `serialize` feature should also enable `serde/derive`
In master/last release serialize feature implicitly depends on serde/derive . Just add resolve = "2" to Cargo.toml to see the following: error[E0433]: failed to resolve: could not find `Deserialize` in `serde` --> src/name.rs:19:45 | 19 | #[cfg_attr( …
loyd · 2022-09-08 · 8 · #472
enhancementserde
Deserialization of a doctype with very long content fails
benoitryder · 2024-09-20 · 7 · #533
bughelp wanted
hecatia-elegua · 2023-05-19
Start rewrite serde serialization tests
Our serde serializer a far from ideal, but rewriting it requires a very long commit history, as I think (I already have 20 commits and I suspect that I'll double that count...). Because I'm not a big fan of long PRs, I propose that changes, that rewrites …
Mingun · 2022-09-04 · 3 · #468
serde
Deserialize array failed when tags discontinuous
Caisin · 2024-09-28 · 1 · #809
questionserdearrays
Mingun · 2024-09-28
Add a `read_text` implementation for async readers
This adds a read_text_into_async method for Readers which allows writing the content in between nested tags to an arbitrary AsyncWriter , analogous to Reader::read_text and NsReader::read_text respectively.
BitSyndicate1 · 2025-04-22 · 0 · #856
#[serde(rename = "$value")] for Enum Variants
marcfir · 2025-03-11 · 4 · #847
questionserde
Mingun · 2025-02-26
Hi there, I've just been playing around with quick-xml to handle reading and writing of Glyph Interchange Format files, and I had some observations I wanted to share. [u8] / Cow<[u8]> vs Cow<str> My understanding is that quick-xml attempts to do the least …
cmyr · 2025-06-08 · 12 · #158
enhancementencoding
Problem deserializing a struct that can be serialized
KorribanMaster · 2024-06-03 · 2 · #752
bughelp wantedserdearrays
KorribanMaster · 2024-06-03
Is it as expect that Option attribute serialize into empty string instead of non-attribute.
A simple example here. use serde::Serialize; use quick_xml::se::to_string; #[derive(Serialize)] struct Foo { #[serde(rename = "@foo")] foo: Option<usize> } #[test] fn test_foo() { let foo = Foo { foo: None }; let foo_xml = to_string(&foo).unwrap(); assert …
Vonfry · 2023-12-03 · 1 · #692
serdedocumentation
XML deserializate failed when text contains `&()_+-=;`
Xuanwo · 2024-02-28 · 6 · #719
questionserde
Mingun · 2024-02-27
We should either restrict all invalid characters both in literal form and as character references, or none of them. Disallowing only the one character is inconsistently. Because checking literal forms means that we should decode and check all the input, …
Mingun · 2024-06-05 · 6 · #750
Deserializing to variant vector fields fails
MoSal · 2024-08-06 · 4 · #288
bugserdearrays
cpick · 2021-07-19
Add ability to deserialize serde types from `Reader`
When working with deeply nested xml, most of the time, we are only interested in a portion of the whole tree close to the leaf node. My idea is to extract the string of the target node and deserialize it with serde. But I can't find any convenient way to …
ndtoan96 · 2024-09-01 · 6 · #611
enhancementhelp wantedserde
Fix couple of bugs in serde deserializer
Mingun · 2022-12-12 · 3 · #523
bugserde
codecov-commenter · 2022-12-11
With serde, is it possible to get unknown variant names outside of a deserializing error?
I'm using serde to deserialize a file format that looks something like this: <root> <list> <type1>content</type1> <type2>a new and exciting content type </type2> <!-- etc --> </list> </root> This is easy to implement and I've done so using an enum because …
Dekkonot · 2023-06-05 · 3 · #602
questionserde
Deserializing $primitive= gives some problems.
stchysh · 2024-10-08 · 1 · #817
questionserde
Mingun · 2024-10-08
Update maybe_xml dependency 0.3 -> 0.6
maybe_xml is still about 1.5x--2x faster that quick-xml in most tests, except those: rpm_other linescore test_writer_ident players Here is criterion report: comparison.zip
Mingun · 2023-10-17 · 1 · #668
Add new tests for syntax and ill-formed parser errors and fix... emm... errors
Mingun · 2023-11-22 · 1 · #684
bug
codecov-commenter · 2023-11-22
Remove ignored tests which produces warnings since serde 1.0.215
They are never will be implemented anyway. You need to implement deserialization manually if you want two xs:choice fields in your struct.
Mingun · 2024-11-22 · 0 · #833
Use thiserror crate to make error definition more ergonomic.
wt · 2023-09-09 · 10 · #640
wt · 2023-08-27
Lists can be serialized but the result can not be deserialized
quickl xml is not able to deserialize an empty vector. Example below panics at the deserializing of the serialized struct use serde; use quick_xml; #[derive(serde::Serialize, serde::Deserialize)] struct Elements { #[serde(rename = "list")] elems: Vec<()>, …
GunnarMorrigan · 2023-11-17 · 4 · #682
serdearrays
de: consider local name only for namespaced tags in structs with `$value`
Xiphoseer · 2024-05-13 · 10 · #736
serdenamespaces
Xiphoseer · 2024-04-12
Issue deserializing lists of enums using serde derive
I'm trying to parse xml with the structure <root><string>A</string><string>B</string></root> . I've tried to implement this using serde derive macros as its easier to maintain. The code I've tried is use serde::{Deserialize, Serialize}; #[derive(Serialize …
maddymakesgames · 2024-02-08 · 1 · #712
serdearrays
Fix incorrect test for 580 and get rid of allocations in hot path
Mingun · 2023-10-09 · 1 · #662
serdeoptimization
codecov-commenter · 2023-10-07
Lifetime issue in new unbuffered logic
I have been trying out the new alpha version and I think I stumbled upon a kinda-bug. Somehow something that should be possible is not, I think because of the way lifetimes are indicated in some methods. I'm trying to find a fix, but to reproduce the …
stevenroose · 2022-08-15 · 3 · #329
deserialize_struct loses the main element
gkorland · 2023-02-20 · 3 · #448
serde
spazm · 2023-02-20
How to use value of e.name without temporary value dropped while borrowed error?
I'm new to Rust, I wanna store the name of the current tag in a variable, so I can create a HashMap using the name as key and its content as value, This is my code: fn parser() { let reader = Reader::from_file("12.xml"); if let Err(e) = reader { panic!("{ …
bangbaew · 2023-08-10 · 2 · #628
question
Thomblin · 2023-12-15 · 2 · #694
Thomblin · 2023-12-12
quick-xml v0.27+ changed behaviour when writing empty values
I'm using quick-xml for my XML-RPC crate (dxr) and I've been a happy user so far, thank you for maintaining the crate! I'm trying to update my quick-xml dependency to a newer version (dxr is currently stuck at v0.25), but I'm hitting a roadblock. It looks …
decathorpe · 2023-06-30 · 7 · #617
enhancementhelp wantedserde
ajtribick · 2021-08-11 · 3 · #259
tafia · 2021-02-08
I'm looking through the AttrError and noticed several references to iteration/parsing modes This error can be raised only when the iterator is in XML mode. ...depending on the parsing mode. I'm curious how this can be done. I've tried searching through …
noahbald · 2024-04-20 · 2 · #735
question
Add reserved namespace bindings.
wt · 2023-09-06 · 33 · #545
wt · 2023-06-07
Between 0.37.5 and 0.38.0 deserialized String fields stopped stripping whitespace
Hello all. Using attached fragment, the deserialisation of a String field seems to changes between 0.37.5 and 0.38.0. Rightly or wrongly 0.37.5 would happily strip/trim whitespace, but 0.38.0 does not do that anymore. use serde::Deserialize; use std::io …
packetsource · 2025-07-11 · 3 · #877
serde
Between 0.37.5 and 0.38.0 deserialized String fields stopped stripping whitespace
packetsource · 2025-07-11 · 3 · #877
serde
packetsource · 2025-07-11
Fails on empty comments without 4 -"
The parser was crashing because of bad slice bounds Closes #604
Tpt · 2023-06-28 · 5 · #618
snmpboy · 2025-06-13 · 2 · #867
questionserde
Mingun · 2025-06-13