Error Location similar to Serde JSON or TOML Spanned?

Open
#625 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
backend

Research direction

Read the deserialization error reporting path and compare how serde_json and serde_toml expose Spanned locations. Define how line and column information should be represented and how the performance tradeoff should work; the issue does not name files or tests, so first locate the relevant deserialization entry points. Done means deserialization errors can report their source location.

Written by the indexing model from the issue text.

Description

enhancement help wanted serde

Hi!

First of all, thank you for your excellent work on the quick-xml project!

I'm currently working on a project where accurate error reporting would be nice. Particularly, I would like to be able to report the line and column number of any deserialization errors that occur when parsing an XML document. From what I understand, quick-xml does not support this feature directly.

However, having a similar mechanism to what serde_json and serde_toml offer, in terms of Spanned, would be great for more precise error reporting, even at the cost of some performance overheads.

Please consider this feature for future versions of quick-xml. If there is anything I can do to help (testing, design, etc.), I would be interested in contributing.

Thanks!

Dominant language
Rust
Stars
1.6k
Forks
299
Avg merge
2d 4h
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tafia/quick-xml

All issues in tafia/quick-xml

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.