quick-xml breaking changes
Updated December 4, 2026
On this page
Latest version 0.42.0, released August 22, 2026. Source repository
Its 0.31.0 release requires Rust 1.56 or later. Rust end of life dates.
quick-xml 0.42.0 breaking changes
- Removed
AsRef<[u8]>
Name types now wrap &str, so AsRef<[u8]> is gone. Use AsRef<str> instead. github.com - Removed
Decoder
The Decoder struct is kept only for compatibility with deprecated Attribute methods. github.com - Removed
From<(&[u8], &[u8])>
The From impl taking a pair of byte slices has been removed. github.com - Removed
quick_xml::de::DeError::UnexpectedStart
quick_xml::de::DeError::UnexpectedStart was removed in quick-xml 0.42.0 crates.io - Removed
quick_xml::de::XmlRead::decoder
quick_xml::de::XmlRead::decoder was removed in quick-xml 0.42.0 crates.io - Removed
quick_xml::de::XmlRead::has_nil_attr
quick_xml::de::XmlRead::has_nil_attr was removed in quick-xml 0.42.0 crates.io - Removed
quick_xml::Decoder::decode
quick_xml::Decoder::decode was removed in quick-xml 0.42.0 crates.io - Removed
quick_xml::Decoder::decode_into
quick_xml::Decoder::decode_into was removed in quick-xml 0.42.0 crates.io - Removed
quick_xml::Decoder::encoding
quick_xml::Decoder::encoding was removed in quick-xml 0.42.0 crates.io - Removed
quick_xml::DeError::UnexpectedStart
quick_xml::DeError::UnexpectedStart was removed in quick-xml 0.42.0 crates.io - Removed
quick_xml::encoding::Decoder::decode
quick_xml::encoding::Decoder::decode was removed in quick-xml 0.42.0 crates.io - Removed
quick_xml::encoding::Decoder::decode_into
quick_xml::encoding::Decoder::decode_into was removed in quick-xml 0.42.0 crates.io - Removed
quick_xml::encoding::Decoder::encoding
quick_xml::encoding::Decoder::encoding was removed in quick-xml 0.42.0 crates.io - Removed
quick_xml::errors::serialize::DeError::UnexpectedStart
quick_xml::errors::serialize::DeError::UnexpectedStart was removed in quick-xml 0.42.0 crates.io - Removed
quick_xml::events::attributes::Attributes::decoder
quick_xml::events::attributes::Attributes::decoder was removed in quick-xml 0.42.0 crates.io - Removed
quick_xml::events::BytesCData::decode
Content is already available as &str via Deref, so decode() is gone. crates.io - Removed
quick_xml::events::BytesRef::decode
Content is already available as &str via Deref, so decode() is gone. crates.io - Removed
quick_xml::events::BytesStart::decoder
Event types and Attributes no longer have a decoder field or decoder() method. Decoding now assumes UTF-8. crates.io - Removed
quick_xml::events::BytesText::decode
Content is already available as &str via Deref, so decode() is gone. crates.io - Removed
quick_xml::name::DEFAULT_MAX_DECLARATIONS_PER_ELEMENT
quick_xml::name::DEFAULT_MAX_DECLARATIONS_PER_ELEMENT was removed in quick-xml 0.42.0 crates.io - Removed
quick_xml::name::NamespaceError::TooManyDeclarations
Match on TooManyBindings instead of TooManyDeclarations. crates.io - Removed
quick_xml::Reader::decoder
quick_xml::Reader::decoder was removed in quick-xml 0.42.0 crates.io - Removed
quick_xml::reader::Reader::decoder
quick_xml::reader::Reader::decoder was removed in quick-xml 0.42.0 crates.io - Removed
Reader.decoder
Use Reader::encoding() instead, available with the encoding feature. github.com - Renamed
DeError.UnexpectedStart
Match on DeError::MixedContent instead of UnexpectedStart. github.com - Renamed
quick_xml::name::NamespaceResolver::max_declarations_per_element
Use quick_xml::name::NamespaceResolver::max_namespace_bindings instead. crates.io - Renamed
quick_xml::name::NamespaceResolver::set_max_declarations_per_element
Call set_max_namespace_bindings instead; the limit's semantics changed slightly. crates.io - Behavior changed
Serialized attribute values now encode CR, LF and tab as character references, changing output bytes. github.com - Behavior changed
BytesText.new
Text containing CR is now escaped as by BytesText::new and the escape functions, changing output. github.com - Behavior changed
Deserializer
Deeply nested XML beyond the default limit of 128 now returns an error. Use Deserializer::recursion_limit() to raise it. github.com - Behavior changed
Event
Event types and the Event enum now dereference to str, not [u8]. Code relying on byte slices must change. github.com - Behavior changed
Reader.from_reader
Input that is not valid UTF-8 now fails with Error::Encoding. Wrap non-UTF-8 sources in DecodingReader to transcode them. github.com - Default changed
NamespaceResolver
The default maximum drops from 256 to 128, and the cap now applies to all in-scope bindings rather than per element. github.com - Configuration changed
The minimum supported Rust version is now 1.86 and the crate uses the Rust 2024 Edition. github.com - Signature changed
Error.missed_end
Drop the Decoder argument when calling Error::missed_end. github.com - Signature changed
quick_xml::de::Deserializer::borrowing_with_resolver
Was fn borrowing_with_resolver(mut reader: NsReader<&'de [u8]>, entity_resolver: E) -> Self; now fn borrowing_with_resolver(reader: NsReader<&'de [u8]>, entity_resolver: E) -> Self. crates.io - Signature changed
quick_xml::de::Deserializer::buffering_with_resolver
Was fn buffering_with_resolver(mut reader: NsReader<R>, entity_resolver: E) -> Self; now fn buffering_with_resolver(reader: NsReader<R>, entity_resolver: E) -> Self. crates.io - Signature changed
quick_xml::de::IoReader::get_ref
Was fn get_ref(&self) -> &NsReader<R>; now fn get_ref(&self) -> &Reader<R>. crates.io - Signature changed
quick_xml::de::SliceReader::get_ref
Was fn get_ref(&self) -> &NsReader<&'de [u8]>; now fn get_ref(&self) -> &Reader<&'de [u8]>. crates.io - Signature changed
quick_xml::events::attributes::Attr::value
Was fn value(&self) -> &'a [u8]; now fn value(&self) -> &'a str. crates.io - Signature changed
quick_xml::events::attributes::Attribute::decode_and_unescape_value
Use normalized_value instead, since attribute values are always UTF-8. crates.io - Signature changed
quick_xml::events::attributes::Attribute::decode_and_unescape_value_with
Use normalized_value_with instead, since attribute values are always UTF-8. crates.io - Signature changed
quick_xml::events::attributes::Attribute::decoded_and_normalized_value
Was fn decoded_and_normalized_value(&self, version: XmlVersion, decoder: Decoder) -> XmlResult<Cow<'a, str>>; now fn decoded_and_normalized_value(&self, version: XmlVersion, _decoder: Decoder) -> XmlResult<Cow<'a, str>>. crates.io - Signature changed
quick_xml::events::attributes::Attribute::decoded_and_normalized_value_with
Was fn decoded_and_normalized_value_with<'entity>(&self, version: XmlVersion, decoder: Decoder, depth: usize, resolve_entity: impl FnMut(&str) -> Option<&'entity str>) -> XmlResult<Cow<'a, str>>; now fn... crates.io - Signature changed
quick_xml::events::attributes::Attribute::value
Attribute::value is Cow<str> instead of a byte Cow. crates.io - Signature changed
quick_xml::events::BytesCData
Was struct BytesCData<'a>; now struct BytesCData<'i>. crates.io - Signature changed
quick_xml::events::BytesCData::escape
Was fn escape(self) -> Result<BytesText<'a>, EncodingError>; now fn escape(self) -> Result<BytesText<'i>, EncodingError>. crates.io - Signature changed
quick_xml::events::BytesCData::escaped
Was fn escaped(content: &'a str) -> CDataIterator<'a>; now fn escaped(content: &'i str) -> CDataIterator<'i>. crates.io - Signature changed
quick_xml::events::BytesCData::html_content
Was fn html_content(&self) -> Result<Cow<'a, str>, EncodingError>; now fn html_content(&self) -> Cow<'i, str>. crates.io - Signature changed
quick_xml::events::BytesCData::into_inner
Was fn into_inner(self) -> Cow<'a, [u8]>; now fn into_inner(self) -> Cow<'i, str>. crates.io
And 69 more in this version. Sign up to see every change
quick-xml 0.41.0 breaking changes
- Behavior changed
NamespaceResolver.push
NamespaceResolver::push, and so every NsReader Start or Empty event, now returns NamespaceError::TooManyDeclarations when a start tag declares more than 256 xmlns bindings. Raise the limit with set_max_declarations_per_element if you need... github.com
quick-xml 0.40.0 breaking changes
- Removed
NsReader.prefixes
The deprecated NsReader methods were removed. Use the .resolver() methods instead. github.com - Removed
NsReader.resolve
The deprecated NsReader methods were removed. Use the .resolver() methods instead. github.com - Removed
NsReader.resolve_attribute
The deprecated NsReader methods were removed. Use the .resolver() methods instead. github.com - Removed
NsReader.resolve_element
The deprecated NsReader methods were removed. Use the .resolver() methods instead. github.com - Removed
quick_xml::name::PrefixIter
Use NamespaceBindingsIter instead. crates.io - Removed
quick_xml::NsReader::prefixes
quick_xml::NsReader::prefixes was removed in quick-xml 0.40.0 crates.io - Removed
quick_xml::NsReader::resolve
quick_xml::NsReader::resolve was removed in quick-xml 0.40.0 crates.io - Removed
quick_xml::NsReader::resolve_attribute
quick_xml::NsReader::resolve_attribute was removed in quick-xml 0.40.0 crates.io - Removed
quick_xml::NsReader::resolve_element
quick_xml::NsReader::resolve_element was removed in quick-xml 0.40.0 crates.io - Removed
quick_xml::reader::NsReader::prefixes
quick_xml::reader::NsReader::prefixes was removed in quick-xml 0.40.0 crates.io
And 19 more in this version. Sign up to see every change
quick-xml 0.39.2 breaking changes
- Signature changed
quick_xml::Reader::read_to_end_into_async
Was async fn read_to_end_into_async<'n>(&mut self, // We should name that lifetime due to https://github.com/rust-lang/rust/issues/63033` end: QName<'n>, buf: &mut Vec<u8>) -> Result<Span>; now async fn read_to_end_into_async<'n>(&mut... crates.io - Signature changed
quick_xml::reader::Reader::read_to_end_into_async
Was async fn read_to_end_into_async<'n>(&mut self, // We should name that lifetime due to https://github.com/rust-lang/rust/issues/63033` end: QName<'n>, buf: &mut Vec<u8>) -> Result<Span>; now async fn read_to_end_into_async<'n>(&mut... crates.io
quick-xml 0.39.0 breaking changes
- Removed
quick_xml::errors::SyntaxError::UnclosedPIOrXmlDecl
The UnclosedPIOrXmlDecl error variant is replaced by UnclosedPI and UnclosedXmlDecl, so code matching it must be updated. crates.io - Removed
SyntaxError.UnclosedTag
The UnclosedTag error variant is split into UnclosedTag, UnclosedSingleQuotedAttributeValue and UnclosedDoubleQuotedAttributeValue, so code matching it must be updated. github.com - Configuration changed
The minimum supported serde version rises from 1.0.139 to 1.0.180, so projects pinned to older serde must upgrade. github.com - Signature changed
quick_xml::events::attributes::Attributes::has_nil
Attributes::has_nil accepts a NamespaceResolver instead of a Reader, so callers must pass the resolver. crates.io - Signature changed
quick_xml::parser::Parser::eof_error
Parser::eof_error now takes &self and content &[u8] parameters, so existing calls must be updated. crates.io
quick-xml 0.38.2 breaking changes
- Signature changed
quick_xml::escape::unescape
Was fn unescape(raw: &str) -> Result<Cow<str>, EscapeError>; now fn unescape(raw: &str) -> Result<Cow<'_, str>, EscapeError>. crates.io - Signature changed
quick_xml::events::BytesCData::borrow
Was fn borrow(&self) -> BytesCData; now fn borrow(&self) -> BytesCData<'_>. crates.io - Signature changed
quick_xml::events::BytesDecl::borrow
Was fn borrow(&self) -> BytesDecl; now fn borrow(&self) -> BytesDecl<'_>. crates.io - Signature changed
quick_xml::events::BytesDecl::encoding
Was fn encoding(&self) -> Option<Result<Cow<[u8]>, AttrError>>; now fn encoding(&self) -> Option<Result<Cow<'_, [u8]>, AttrError>>. crates.io - Signature changed
quick_xml::events::BytesDecl::standalone
Was fn standalone(&self) -> Option<Result<Cow<[u8]>, AttrError>>; now fn standalone(&self) -> Option<Result<Cow<'_, [u8]>, AttrError>>. crates.io - Signature changed
quick_xml::events::BytesDecl::version
Was fn version(&self) -> Result<Cow<[u8]>, Error>; now fn version(&self) -> Result<Cow<'_, [u8]>, Error>. crates.io - Signature changed
quick_xml::events::BytesEnd::borrow
Was fn borrow(&self) -> BytesEnd; now fn borrow(&self) -> BytesEnd<'_>. crates.io - Signature changed
quick_xml::events::BytesEnd::local_name
Was fn local_name(&self) -> LocalName; now fn local_name(&self) -> LocalName<'_>. crates.io - Signature changed
quick_xml::events::BytesEnd::name
Was fn name(&self) -> QName; now fn name(&self) -> QName<'_>. crates.io - Signature changed
quick_xml::events::BytesPI::attributes
Was fn attributes(&self) -> Attributes; now fn attributes(&self) -> Attributes<'_>. crates.io
And 25 more in this version. Sign up to see every change
Older versions
13 older versions, each with its first changes. Sign up to see every change
Show 13 older versions
quick-xml 0.38.1 breaking changes
- Behavior changed
Deserializer
Text read by Deserializer now uses XML end-of-line normalization, so code that reads text with CRLF line endings may see LF instead. github.com
quick-xml 0.38.0 breaking changes
- Removed
From<QName<'a>> for BytesStart<'a>
BytesStart now stores its encoding, so the From<QName<'a>> implementation was removed. Code that converts a QName into BytesStart with From must be changed. github.com - Removed
quick_xml::events::BytesText::unescape
BytesText::unescape is gone and BytesText::decode takes its place. Text events no longer contain escaped parts, so code must handle Event::GeneralRef separately. crates.io
And 4 more in this version.
quick-xml 0.37.0 breaking changes
- Removed
DeError.InvalidBoolean
The DeError::InvalidBoolean variant was removed; the visitor of the type now returns this error. github.com - Removed
DeError.InvalidFloat
The DeError::InvalidFloat variant was removed; the visitor of the type now returns this error. github.com
And 71 more in this version.
quick-xml 0.36.0 breaking changes
- Removed
quick_xml::reader::PiParser
reader::PiParser moved to the new module parser. Update imports to use the new path. crates.io - Renamed
quick_xml::reader::ElementParser
reader::ElementParser moved to the new module parser. Update imports to use the new path. crates.io
And 2 more in this version.
quick-xml 0.35.0 breaking changes
- Removed
quick_xml::escape::EscapeError::EntityWithNull
This variant is replaced by InvalidCharRef, which holds a ParseCharRefError. crates.io - Removed
quick_xml::escape::EscapeError::InvalidCodepoint
This variant is replaced by InvalidCharRef, which holds a ParseCharRefError. crates.io
And 5 more in this version.
quick-xml 0.34.0 breaking changes
- Behavior changed
Writer.write_event
Writer::write_event takes ownership of the event. Use Event::borrow() if you need to keep it. github.com - Signature changed
quick_xml::events::attributes::Attribute::decode_and_unescape_value
Attribute::decode_and_unescape_value now accepts a Decoder instead of a Reader. Use Reader::decoder() to get one. crates.io
And 12 more in this version.
quick-xml 0.33.0 breaking changes
- Configuration changed
quick_xml.escape.resolve_html5_entity
The function is hidden behind the escape-html feature again, so code using it without enabling that feature will no longer compile. github.com - Signature changed
quick_xml::ElementWriter::write_pi_content
Was fn write_pi_content(self, text: BytesText) -> Result<&'a mut Writer<W>>; now fn write_pi_content(self, pi: BytesPI) -> Result<&'a mut Writer<W>>. crates.io
And 4 more in this version.
quick-xml 0.32.0 breaking changes
- Removed
quick_xml::de::DeError::ExpectedStart
quick_xml::de::DeError::ExpectedStart was removed in quick-xml 0.32.0 crates.io - Removed
quick_xml::de::DeError::UnexpectedEnd
quick_xml::de::DeError::UnexpectedEnd was removed in quick-xml 0.32.0 crates.io
And 20 more in this version.
quick-xml 0.31.0 breaking changes
- Behavior changed
The serde enum representation was changed to stay compatible with serde 1.0.181 and later. Code that depends on the previous enum encoding must be updated. github.com - Behavior changed
Empty simpleType values such as attributes now always deserialize into Option fields as Some(""). Code that expects None for these fields must be updated. github.com
And 6 more in this version.
quick-xml 0.30.0 breaking changes
- Signature changed
quick_xml::de::Deserializer::from_str
Was fn from_str(s: &'de str) -> Self; now fn from_str(source: &'de str) -> Self. crates.io
quick-xml 0.28.0 breaking changes
- Removed
quick_xml::de::DeEvent::CData
The DeEvent::CData event was removed and its content is now delivered as DeEvent::Text, merged with adjacent text when deserializing with serde. crates.io - Renamed
quick_xml::Writer::inner
Use quick_xml::Writer::get_mut instead. crates.io
And 15 more in this version.
quick-xml 0.27.0 breaking changes
- Removed
$primitive=
The $primitive= prefix was removed; prepend @ to the field name to serialize it as an attribute. github.com - Removed
$unflatten=
The $unflatten= prefix for serde fields was removed; use the @ prefix to mark attributes instead. github.com
And 7 more in this version.
quick-xml 0.25.0 breaking changes
- Behavior changed
Map keys are now restricted to only types that can be serialized as primitives. Code using other key types for serialized maps will now fail. github.com - Signature changed
DeError.Unsupported
The content of DeError::Unsupported changed from &'static str to Cow<'static, str>. Code that constructs or matches this variant with a string slice must be updated. github.com
And 3 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.