der: extract a `Decoder` type in next breaking release
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 347
- Forks
- 200
- Merge medio
- 20 h 27 min
- PR fusionados (30 d)
- 35
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de RustCrypto/formats
-
cms: CHOICE types in `SET OF` are ordered as `SEQUENCE OF INTEGER`, not by their bytesPosiblemente ocupada @brother-z la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
RustCrypto/formats#2538 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
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)Posiblemente ocupada @choksi2212 la tomó hace 23 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
RustCrypto/formats#2486 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
IssuingDistributionPoint has the wrong AssociatedOid (id-pe-subjectInfoAccess)Posiblemente ocupada @eyusd la tomó hace 101 días. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 86/100
RustCrypto/formats#2389 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
RustCrypto/formats#2366 ·
Los mantenedores suelen responder en 1 día
-
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 v1Posiblemente ocupada @choksi2212 la tomó hace 23 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 61/100
RustCrypto/formats#2487 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de RustCrypto/formats
Issues similares
-
benchmark-review
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
Los mantenedores suelen responder en 1 día
-
area:filesystem bug need-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Captions panel does not offer to show an existing transcriptPosiblemente ocupada @thedavidweng la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
CapSoftware/Cap#4276 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
libracoder/kiri#364 ·
Los mantenedores suelen responder en 1 día