Skip to content

deps(deps): bump quick-xml from 0.41.0 to 0.42.0 in /fuzz - #532

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/fuzz/quick-xml-0.42.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/fuzz/quick-xml-0.42.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 30, 2026

Copy link
Copy Markdown
Contributor

Bumps quick-xml from 0.41.0 to 0.42.0.

Release notes

Sourced from quick-xml's releases.

v0.42.0 - String Ergonomics

What's Changed

0.42.0 -- 2026-08-22

This is a large release. The primary change is an ergonomic improvement across the entire API - quick_xml now makes use of &str and String types where possible instead of &[u8] and Vec<u8>. This requires significant refactoring of downstream code, but should result in a net simplification as well as potential performance improvements, and opens up additional opportunities in future releases.

The MSRV has been raised to 1.86. We now use Rust 2024 Edition.

Breaking Changes

  • #963: Reader now validates that input is valid UTF-8 when constructing events. Non-UTF-8 input passed to Reader::from_reader() without DecodingReader will now produce Error::Encoding instead of silently passing through invalid bytes. Use DecodingReader to transcode non-UTF-8 sources.
  • #963: Name types (QName, LocalName, Prefix, Namespace, PrefixDeclaration) now wrap &str instead of &[u8]. into_inner() returns &str, and AsRef<str> is implemented (AsRef<[u8]> has been removed). ResolveResult::Unknown now contains String instead of Vec<u8>, and NamespaceError variants contain String instead of Vec<u8>.
  • #963: Removed the decoder: Decoder field from event types (BytesStart, BytesText, BytesCData, BytesRef) and Attributes. The decoder() method is no longer available on these types. Decode methods on events now always assume UTF-8 input. Error::missed_end() no longer takes a Decoder parameter.
  • #963: Event types (BytesStart, BytesEnd, BytesText, BytesCData, BytesPI, BytesRef) now store Cow<str> internally instead of Cow<[u8]>. into_inner() on BytesText, BytesCData, BytesPI, and BytesRef now returns Cow<str>. BytesStart::set_name() now takes &str instead of &[u8].
  • #963: All event types and the Event enum now implement Deref<Target = str> instead of Deref<Target = [u8]>. Explicit AsRef<str> impls are provided to avoid ambiguity.
  • #963: Removed decode() methods from BytesText, BytesCData, and BytesRef. Content is already available as &str via Deref. The xml10_content(), xml11_content(), xml_content(), and html_content() methods now return Cow<str> directly instead of Result<Cow<str>, EncodingError>.
  • #963: Attribute::value is now Cow<'a, str> instead of Cow<'a, [u8]>. The From<(&[u8], &[u8])> impl has been removed.
  • #963: BytesDecl::version(), encoding(), and standalone() now return Cow<'_, str> instead of Cow<'_, [u8]>.
  • #963: Removed Reader::decoder() method. Use Reader::encoding() instead (available with the encoding feature). Removed decoder() from the XmlRead serde trait. Removed all methods from Decoder (the struct is kept only for backward compatibility with deprecated Attribute methods).
  • #980: NamespaceError::TooManyDeclarations has been renamed to TooManyBindings, and NamespaceResolver::set_max_declarations_per_element has been renamed to NamespaceResolver::set_max_namespace_bindings, and the semantic behavior has

... (truncated)

Changelog

Sourced from quick-xml's changelog.

0.42.0 -- 2026-08-22

This is a large release. The primary change is an ergonomic improvement across the entire API - quick_xml now makes use of &str and String types where possible instead of &[u8] and Vec<u8>. This requires significant refactoring of downstream code, but should result in a net simplification as well as potential performance improvements, and opens up additional opportunities in future releases.

The MSRV has been raised to 1.86. We now use Rust 2024 Edition.

Breaking Changes

  • #963: Reader now validates that input is valid UTF-8 when constructing events. Non-UTF-8 input passed to Reader::from_reader() without DecodingReader will now produce Error::Encoding instead of silently passing through invalid bytes. Use DecodingReader to transcode non-UTF-8 sources.
  • #963: Name types (QName, LocalName, Prefix, Namespace, PrefixDeclaration) now wrap &str instead of &[u8]. into_inner() returns &str, and AsRef<str> is implemented (AsRef<[u8]> has been removed). ResolveResult::Unknown now contains String instead of Vec<u8>, and NamespaceError variants contain String instead of Vec<u8>.
  • #963: Removed the decoder: Decoder field from event types (BytesStart, BytesText, BytesCData, BytesRef) and Attributes. The decoder() method is no longer available on these types. Decode methods on events now always assume UTF-8 input. Error::missed_end() no longer takes a Decoder parameter.
  • #963: Event types (BytesStart, BytesEnd, BytesText, BytesCData, BytesPI, BytesRef) now store Cow<str> internally instead of Cow<[u8]>. into_inner() on BytesText, BytesCData, BytesPI, and BytesRef now returns Cow<str>. BytesStart::set_name() now takes &str instead of &[u8].
  • #963: All event types and the Event enum now implement Deref<Target = str> instead of Deref<Target = [u8]>. Explicit AsRef<str> impls are provided to avoid ambiguity.
  • #963: Removed decode() methods from BytesText, BytesCData, and BytesRef. Content is already available as &str via Deref. The xml10_content(), xml11_content(), xml_content(), and html_content() methods now return Cow<str> directly instead of Result<Cow<str>, EncodingError>.
  • #963: Attribute::value is now Cow<'a, str> instead of Cow<'a, [u8]>. The From<(&[u8], &[u8])> impl has been removed.
  • #963: BytesDecl::version(), encoding(), and standalone() now return Cow<'_, str> instead of Cow<'_, [u8]>.
  • #963: Removed Reader::decoder() method. Use Reader::encoding() instead (available with the encoding feature). Removed decoder() from the XmlRead serde trait. Removed all methods from Decoder (the struct is kept only for backward compatibility with deprecated Attribute methods).
  • #980: NamespaceError::TooManyDeclarations has been renamed to TooManyBindings, and NamespaceResolver::set_max_declarations_per_element has been renamed to NamespaceResolver::set_max_namespace_bindings, and the semantic behavior has changed slightly. The default maximum has also been reduced from 256 to 128.
  • #1000: DeError::UnexpectedStart renamed to DeError::MixedContent. That error is emitted when you try to deserialize boolean, number or string field from something like <field>text <tag/> another text</field>.

... (truncated)

Commits
  • 36a2c52 Release 0.42.0
  • a4b9fca cargo fmt
  • 22c99f5 Update Rust Edition to 2024
  • 83351fb Add rename = $value to a table in serde example comments
  • f4db767 Clarify documentation about lifetimes of the events and attributes
  • 9f4c66a Fix formatting for correct assertions in read_nodes_serde
  • 6950ef7 Add GHA job to execute examples
  • dbf9e3f Show XML Decl tracking in examples
  • aab9452 Add writing a Decl event to the writer example
  • 1573e05 Avoid trim_text(true) in the in-depth examples
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Sep 30, 2026
@dependabot
dependabot Bot requested a review from DrunkOnJava as a code owner September 30, 2026 15:51
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Sep 30, 2026
DrunkOnJava added a commit that referenced this pull request Sep 30, 2026
…t 0.4.11 (#535)

## Summary

Raises the minimum supported Rust version from 1.85 to 1.87 and takes the two dependency updates that floor was holding back: quick-xml 0.42 (#532) and earcut 0.4.11 (#531). The PartAtom reader is moved to quick-xml 0.42's `&str` API, and nine remainder checks become `is_multiple_of`, which clippy asks for once the MSRV allows it. Nothing else in the crate changes.

## Motivation

Both updates need a newer compiler than 1.85. quick-xml 0.42 declares `rust-version = 1.86` (its changelog: "The MSRV has been raised to 1.86"; crates.io agrees). earcut declares no `rust-version`, but from 0.4.10 it calls `is_multiple_of`, stable from Rust 1.87 (RELEASES.md, Version 1.87.0), which is why `Cargo.toml` held it below 0.4.10 and noted "Lift the bound with the MSRV". Dependabot's own bump of that bound (to `<0.4.12`, in #531) failed the MSRV job with `use of unstable library feature unsigned_is_multiple_of`, and #532 does not compile: quick-xml 0.42 changed names, text and entity references from `&[u8]` to `&str`.

Holding both indefinitely would leave the dependency graph frozen at whatever 1.85 allows. The cost of moving is small: `rvt` on crates.io has 25 downloads and no reverse dependencies (crates.io API, 2026-09-30), and Rust 1.87 was released on 2025-05-15.

## Changes

- `Cargo.toml`, `rvt-py/Cargo.toml`, `tools/stream_evidence/Cargo.toml`: `rust-version = "1.87"`. `earcut = "0.4.5"` (the upper bound is gone), `quick-xml = "0.42"`. The criterion comment that named the 1.85 floor no longer does.
- `Cargo.lock`, `fuzz/Cargo.lock`: earcut 0.4.11 and quick-xml 0.42.0. The checksums are the ones Dependabot wrote into the fuzz lock and equal the crates.io API's for both versions; the dependency lists are unchanged.
- `src/part_atom.rs`: `e.name().into_inner()` instead of `from_utf8_lossy(e.name().as_ref())`, `a.key.into_inner() == "scheme"` instead of a byte comparison, and text and entity references read through the events' `Deref<Target = str>` (`decode()` was removed). `normalized_value`, `resolve_char_ref` and `resolve_predefined_entity` keep their signatures, and an entity reference's content is still the bare name (`amp`), as quick-xml's own doc example for `BytesRef` shows.
- `src/elem_table.rs`, `src/element_record_plan_profiles.rs`, `src/geometry/recovery.rs`, `src/ifc/gltf.rs`, `src/native_saved_mesh.rs`, `src/transmission_data.rs`: nine `x % n == 0` checks on unsigned integers become `x.is_multiple_of(n)`, each exactly the replacement clippy's `manual_is_multiple_of` printed on this pull request's first run (the lint applies from `rust-version` 1.87; the divisors are non-zero literals, so `is_multiple_of` and `%` agree).
- `.github/workflows/ci.yml`: the MSRV job builds on 1.87, so its check name is now `build + real files / ubuntu-latest / 1.87` (not a required check).
- README, CONTRIBUTING, RELEASE, AGENTS, `docs/install.md`, `docs/python.md`, `docs/benchmarks.md`, `.cursor/install.sh`, the bug report form's placeholder and the witness crate's comment: 1.87.
- `docs/maintaining.md`: a section on how the MSRV moves and what to do with a Dependabot pull request that fails the MSRV job.
- `CHANGELOG.md`.

## Testing

No product logic changes; the evidence is the build and the measurements on the runners, taken at 3561238. The branch was then brought up to date with `main`, which added only the audit tool's fix (#536), a docs table (#537) and their changelog line, and its required checks ran again.

- [x] Every check passes at 3561238, required or not: the MSRV job on 1.87 (`build + real files / ubuntu-latest / 1.87`), macOS and Windows, the wheel, `cargo bench --no-run`, corpus tier 2, the writer patch corpus, the IfcOpenShell validator and the release-binary builds.
- [x] Measure, head 3561238 against `main` aefc29f, [run 36743387491](https://github.com/DrunkOnJava/rvt-rs/actions/runs/36743387491): the IFC is byte-identical on all six reference models (Core Interior, Einhoven, RE1 Architecture, Electrical, Mechanical, Plumbing), and so is every scorer output, about twenty per model. This says nothing about the PartAtom parser: the exporter reads only a `PartAtom` stream, and `diagnostics.json` shows `has_part_atom: false` on all six.
- [x] The parser is measured by #538's addition to Measure, which has `rvt-info --redact --json` read every model and every Autodesk family and diffs it. Run from that branch on this one (head 3561238 against `main` aefc29f, `families=true`, [run 36744354619](https://github.com/DrunkOnJava/rvt-rs/actions/runs/36744354619)): the output and the exit status (0) are identical on all 17 files. On the eleven families (2016 to 2026) that is a PartAtom read through the migrated code (title `0610 x 0915mm`, OmniClass `23.40.20.14.17`, two categories and two taxonomies, 3.4 to 4.2 KB of XML each); on the six project models it is their `ProjectInformation` stream, which goes through the same `PartAtom::from_bytes` (`document.title` and `last_saved` are the atom's `entry_title` and `updated`, and are set on all six).
- [x] Fuzz, `fuzz_part_atom` for 300 s on this branch at 3561238 ([run 36744743660](https://github.com/DrunkOnJava/rvt-rs/actions/runs/36744743660)): 14,137,919 executions of `PartAtom::from_bytes` under libFuzzer, no crash, timeout or out-of-memory. The same run builds the fuzz workspace on nightly against quick-xml 0.42 and earcut 0.4.11 in `fuzz/Cargo.lock`.

## Audit-honesty checklist

- [x] The MSRV, in the manifests, CI and docs, moves together; the changelog says `rvt` 0.4.0 on crates.io still declares 1.85
- [x] Not established here: PartAtom streams other than these seventeen files. The reader is given a `&str`, so quick-xml 0.42's new rejection of input that is not valid UTF-8 cannot happen from `PartAtom::from_bytes`, which already returns an error for invalid UTF-8
- [x] No emojis, private paths or PII

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk content
- [x] No fixtures

## Breaking changes

The minimum supported Rust version rises from 1.85 to 1.87. The next release notes carry it.

## Related issues

Supersedes the Dependabot pull request #532 (quick-xml 0.42) and the earcut part of #531.
@DrunkOnJava

Copy link
Copy Markdown
Owner

Superseded by #535, which takes quick-xml 0.42 together with the MSRV bump it needs (1.86 or above; the crate is now on 1.87) and the migration of src/part_atom.rs to the &str API. rvt-info output and exit status on all 17 measured files (six models, eleven Autodesk families) are identical between quick-xml 0.41 and 0.42, and fuzz_part_atom ran 14 million executions clean on it. Closing.

@dependabot @github

dependabot Bot commented on behalf of github Sep 30, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/cargo/fuzz/quick-xml-0.42.0 branch September 30, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant