Add ability to serialize Serde types to quick_xml::writer::Writer

オープン
#886 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
28/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust
領域
backend

調査の方向性

Start by reading issue #611 and the Serde serialization documentation to understand how the current serializer writes to std::io::Write and how quick_xml events are produced. Then trace the serialization and writer entry points to assess how event streaming could support middleware. Done means Serde types can stream events to a writer so filtering and transformations can be applied without a serialize/parse round trip.

索引モデルが issue の本文から書いたものです。

説明

enhancement serde

While the documentation talks about "writers" in the context of serializing a Serde type, this is really about the std::io::Write API, not about the quick_xml writer itself.

If I could stream events to a writer, then middleware become possible. Use cases include filtering events so that only part of the document gets written to bytes and applying transformations to output like XML canonicalization.

It also helps unlock to namespace normalization middleware; right now Serde serializers are locked into hardcoded prefixes, but a transformation stage could exist that rewrites these events to target different prefixes and this is important in canonicalization which unfortunately is sensitive to specific prefixes.

This looks to be the inverse of this issue:

https://github.com/tafia/quick-xml/issues/611

It's possible to build such pipelines now I think, but it requires a serialize/parse round trip in order to glue things together.

主要言語
Rust
スター
1.6k
フォーク
299
平均マージ
2日 4時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tafia/quick-xml のほかの issue

tafia/quick-xml の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。