cffi: add a configure option to opt-out of "nice" errors

Abierto
#39 2 comentarios 0 reacciones 0 asignados Ver en GitHub

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
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
linux, rust

Línea de trabajo

The issue depends on the config API tracked in #21. Read that issue and the existing error API to see how configuration options are added and how errors without an underlying errno are represented. Decide which raw errno value should represent those errors, then define the option’s behavior and test both errno-backed and errno-free errors.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

impact/feature

While the new API makes error management much nicer, some users might just want to get raw errnos.

We can very easily switch to returning raw errnos from a type perspective, but it's a little unclear what we should do for errors that don't have an underlying errno. We can just copy the kernel and just use -EINVAL 😅, or we could use an errno that the kernel rarely returns like -ENOANO, never returns like -ENOPARAM, or a large negative number that doesn't map to any errno (INT_MIN if we want to be safe, I guess?).

This requires us getting a nice config API first (#21).

(Suggested by @brauner.)

Lenguaje dominante
Rust
Estrellas
146
Forks
12
Merge medio
1 d 16 h
PR fusionados (30 d)
20

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de cyphar/libpathrs

Todos los issues de cyphar/libpathrs

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.