Consider Replacing/Augmenting `embedded-io(-*)` with `alloc::io` and `futures-io`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- rust
- Ambito
- embedded-iot
Direzione di ricerca
Start by reviewing the proposed alloc::io and core::io implementations and the existing embedded-io, embedded-io-adapters, and embedded-io-async crates. Compare the proposal's MSRV, alloc, error-type, blocking, and async implications with the linked futures-io work. Done means establishing a maintainer-backed direction for replacement, augmentation, or continued use; no implementation files or tests are named.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Background
With rust-lang/rust#154046 implemented, nightly now has a full implementation of std::io available from alloc::io, and a partial implementation available from core::io. With that, other crates such as futures-io can gain no_std support, potentially making them viable in the embedded space.
Proposal
- Increase MSRV to whatever version contains a stabilized
alloc::io&core::io. - Directly use
core::ioand (where required)alloc::iofor synchronous I/O. - Use
futures-iofor asynchronous I/O. - Deprecate
embedded-io,embedded-io-adapters, andembedded-io-async.
Drawbacks
ReadandBufReadare currently only available fromalloc::io.embedded-ioprovides alternatives to those traits even without theallocfeature enabled, so using the standard library I/O traits would increase the need for downstream crates to enable theallocfeature.embedded-ioallows changing the error type used for I/O operations, whereas the standard library traits usecore::io::Errorexclusively.embedded-ioguarantees its trait implementations are blocking, deferring non-blocking support toReadReadyandWriteReady. These traits could remain, orembedded-halcould move towards the standard library approach of mixed non-/blocking.
Benefits
- Three fewer crates to maintain.
- Standardised I/O interface which would allow non-embedded crates to more easily be used in an embedded context (e.g.,
flate2) - Potentially reduced friction for users starting in embedded Rust by avoiding divergence (as noted in #694, #686, and #648)
Notes
- I'm one of the contributors working on
alloc_ioandcore_io. I'm opening this issue to gauge interest in a standard library implementation ofno_stdI/O, and whether it may be suitable for stabilization.
- Lingua principale
- Rust
- Stelle
- 2.7k
- Fork
- 283
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 rust-embedded/embedded-hal
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
rust-embedded/embedded-hal#742 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
rust-embedded/embedded-hal#746 · 2 commenti · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
rust-embedded/embedded-hal#745 · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
rust-embedded/embedded-hal#744 · 1 commento ·
-
CAN: returning `Result` instead of `Option`Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
rust-embedded/embedded-hal#741 · 2 reazioni ·
Tutte le issue di rust-embedded/embedded-hal
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
RustCrypto/SSH#596 ·
-
proxy: SQL-over-HTTP turns empty arrays into [""] or [false], or HTTP 500 for int and float arraysAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
neondatabase/neon#12965 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
goauthentik/authentik#26867 ·
I maintainer di solito rispondono entro 1 giorno
-
api bug macos maintainer-needed p2 triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
area::tern difficulty::easy good first issue kind::cleanup triage::ready
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100