der: extract a `Decoder` type in next breaking release
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by comparing the der reader implementations and their Reader::read_nested methods with the Decoder approach in the linked SSH pull request #618. The issue proposes centralizing nested production handling in a generic Decoder for the next breaking release, but leaves the design and scope open. Done means reducing duplicated reader logic while preserving decoding behavior.
索引モデルが issue の本文から書いたものです。
説明
der used to have a Decoder type, but it was refactored into SliceReader. Logic for handling nested productions winds up duplicated among the various *Reader impls in their Reader::read_nested methods, which are custom implemented per Reader type.
In ssh-encoding, which uses a similar arrangement of types, I introduced a Decoder type generic over a backend Reader which handles the central logic for consuming data from the readers, and all of the Decode methods now accept a &mut Decoder<impl Reader>: https://github.com/RustCrypto/SSH/pull/618
In the next breaking release of der I think it'd be nice to do something similar. I added some partial shared logic in the Position type, but really it'd be nice to eliminate the duplication of logic between the reader types.
- 主要言語
- Rust
- スター
- 347
- フォーク
- 200
- 平均マージ
- 20時間 27分
- マージ済み PR(30日)
- 35
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RustCrypto/formats のほかの issue
-
cms: CHOICE types in `SET OF` are ordered as `SEQUENCE OF INTEGER`, not by their bytes対応中かも @brother-z が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
RustCrypto/formats#2538 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
pem-rfc7468: a lone CR before -----BEGIN is refused as Error::Preamble, so a CR-terminated multi-certificate PEM fails load_pem_chain (RFC 7468 eol = CRLF / CR / LF)対応中かも @choksi2212 が 23 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
RustCrypto/formats#2486 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
IssuingDistributionPoint has the wrong AssociatedOid (id-pe-subjectInfoAccess)対応中かも @eyusd が 101 日前に担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
RustCrypto/formats#2389 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
RustCrypto/formats#2366 ·
メンテナーはふだん 1 日以内に返信
-
x509-cert 0.3.0 declares RFC 5914's TrustAnchorInfo v1 as 0, so it encodes v1 as INTEGER 0 and reads a written version 0 as v1対応中かも @choksi2212 が 23 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 61/100
RustCrypto/formats#2487 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
RustCrypto/formats の issue をすべて見る
似ている issue
-
benchmark-review
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
メンテナーはふだん 1 日以内に返信
-
area:filesystem bug need-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Captions panel does not offer to show an existing transcript対応中かも @thedavidweng が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
CapSoftware/Cap#4276 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
libracoder/kiri#364 ·
メンテナーはふだん 1 日以内に返信