Skip to content

Support roxmltree 0.21.1 with updated lifetime parameters and iterator API - #220

Merged
yawara merged 6 commits into
dependabot/cargo/roxmltree-0.21.1from
copilot/sub-pr-217
Feb 20, 2026
Merged

Support roxmltree 0.21.1 with updated lifetime parameters and iterator API#220
yawara merged 6 commits into
dependabot/cargo/roxmltree-0.21.1from
copilot/sub-pr-217

Conversation

Copilot AI commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

Updates roxmltree from 0.15.0 to 0.21.1, addressing breaking API changes in the XML parsing layer.

Key Changes

  • Lifetime parameters: Attribute now requires two lifetimes <'a, 'input> instead of one
  • Iterator API: Node::attributes() returns an iterator instead of a slice—now collected into Vec for repeated lookups
  • Return types: attribute_of() returns &'a str (from Attribute::value()) instead of &'input str

Test Fixes

Corrected malformed XML closing tags in port.rs tests (<Port></Port>), exposed by stricter validation in roxmltree 0.17.0+.

Before/After

// Before (0.15.0)
struct Attributes<'a, 'input> {
    attrs: &'a [roxmltree::Attribute<'input>],
}

// After (0.21.1)  
struct Attributes<'a, 'input> {
    attrs: Vec<roxmltree::Attribute<'a, 'input>>,
}

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

dependabot Bot and others added 2 commits February 18, 2026 05:16
Updates the requirements on [roxmltree](https://github.com/RazrFalcon/roxmltree) to permit the latest version.
- [Changelog](https://github.com/RazrFalcon/roxmltree/blob/master/CHANGELOG.md)
- [Commits](RazrFalcon/roxmltree@v0.15.0...v0.21.1)

---
updated-dependencies:
- dependency-name: roxmltree
  dependency-version: 0.21.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Copilot AI and others added 2 commits February 19, 2026 01:32
…r API

Co-authored-by: yawara <10078984+yawara@users.noreply.github.com>
Co-authored-by: yawara <10078984+yawara@users.noreply.github.com>
Copilot AI changed the title [WIP] Update roxmltree requirement from 0.15.0 to 0.21.1 Support roxmltree 0.21.1 with updated lifetime parameters and iterator API Feb 19, 2026
Copilot AI requested a review from yawara February 19, 2026 01:37
@dependabot
dependabot Bot force-pushed the dependabot/cargo/roxmltree-0.21.1 branch from 9fe0b56 to 101c09d Compare February 19, 2026 04:19
@yawara
yawara marked this pull request as ready for review February 19, 2026 14:10
@yawara
yawara merged commit a62f554 into dependabot/cargo/roxmltree-0.21.1 Feb 20, 2026
5 checks passed
@yawara
yawara deleted the copilot/sub-pr-217 branch February 20, 2026 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants