cffi: add a configure option to opt-out of "nice" errors
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- linux, rust
- Ambito
- backend-api-design
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.)
- Lingua principale
- Rust
- Stelle
- 146
- Fork
- 12
- Merge medio
- 6g 10h
- PR unite (30g)
- 2
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cyphar/libpathrs
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Rust API: a path component with an interior NUL byte is silently truncated instead of rejectedForse già presa @cyphar l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 18/100
-
rust tests
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
-
api/procfs linux/upstream
Difficoltà 4/5 3-5 giorni Idoneità per principianti 44/100
-
api/cffi bindings/go bindings/python ideas welcome
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Tutte le issue di cyphar/libpathrs
Issue simili
-
rustix::termios::Termios::OutputModes does not expost some const e.g. OLCUC for musl and macOSAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
bytecodealliance/rustix#1706 · 1 commento ·
I maintainer di solito rispondono entro 11 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
wormhole-foundation/wormhole#5062 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authenticationAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100