Crates.io | zorio |
lib.rs | zorio |
version | 0.1.0 |
source | src |
created_at | 2019-01-25 03:22:31.825552 |
updated_at | 2019-01-25 03:22:31.825552 |
description | Subset of standard library I/O ported to no_std |
homepage | |
repository | https://github.com/digitalstreamio/zorio |
max_upload_size | |
id | 110553 |
size | 105,879 |
Port of a subset of Rust's standard library I/O module to no_std.
The implementation is taken directly from libstd with small number of changes to make it work with no_std. All interfaces and implementation match the original code since they did not need to be altered. The only exception to this is Error/ErrorKind types where I rolled with something simpler for now.
All credit for this work goes to the incredible Rust developers.
While working on a bare metal Raspberry Pi 3 project, I found that libcore lacks data reading/writing functions available in libstd. Since most of them are generic and operate on streams that are not tied to file/os implementation, why not make them available to the world of embedded development.
The following modules were ported over:
Module | Status |
---|---|
buffered | Skipped |
cursor | Done |
impls | Done |
lazy | Skipped |
mod | Done |
stdio | Skipped |
util | Skipped |