Skip to content

refactor: migrate XML (de)serialization from quick-xml to instant-xml#156

Merged
paolobarbolini merged 1 commit into
mainfrom
instant-xml-migration
May 20, 2026
Merged

refactor: migrate XML (de)serialization from quick-xml to instant-xml#156
paolobarbolini merged 1 commit into
mainfrom
instant-xml-migration

Conversation

@paolobarbolini
Copy link
Copy Markdown
Owner

quick-xml relies on serde, which does not map well with xml. This switches to instant-xml, which uses it's own system for serialization and deserialization. It doesn't support streaming decoding, but I hope people don't mind too much.

I'll test this more in the following days.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

❌ Patch coverage is 58.82353% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.93%. Comparing base (9915370) to head (4c958dd).

Files with missing lines Patch % Lines
src/actions/delete_objects.rs 33.33% 4 Missing ⚠️
src/actions/multipart_upload/create.rs 0.00% 2 Missing ⚠️
src/actions/multipart_upload/complete.rs 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #156      +/-   ##
==========================================
- Coverage   75.03%   74.93%   -0.11%     
==========================================
  Files          30       30              
  Lines         725      718       -7     
==========================================
- Hits          544      538       -6     
+ Misses        181      180       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@paolobarbolini paolobarbolini force-pushed the instant-xml-migration branch from 425dfae to 180dfab Compare May 14, 2026 10:58
Performance improves by 1.2x–2x across all measured benchmarks.
Also removes some hacky code we had, since serde does not pair well with XML.
@paolobarbolini paolobarbolini force-pushed the instant-xml-migration branch from 180dfab to 4c958dd Compare May 20, 2026 09:56
@paolobarbolini paolobarbolini marked this pull request as ready for review May 20, 2026 09:56
@paolobarbolini paolobarbolini merged commit b939cf3 into main May 20, 2026
14 of 16 checks passed
@paolobarbolini paolobarbolini deleted the instant-xml-migration branch May 20, 2026 09:58
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.

1 participant