| 1 | [](https://github.com/enarx/ciborium/actions?query=workflow%3A%22test%22) |
| 2 | [](https://isitmaintained.com/project/enarx/ciborium "Average time to resolve an issue") |
| 3 | [](https://isitmaintained.com/project/enarx/ciborium "Percentage of issues still open") |
| 4 |  |
| 5 | |
| 6 | # ciborium-io |
| 7 | |
| 8 | Simple, Low-level I/O traits |
| 9 | |
| 10 | This crate provides two simple traits: `Read` and `Write`. These traits |
| 11 | mimic their counterparts in `std::io`, but are trimmed for simplicity |
| 12 | and can be used in `no_std` and `no_alloc` environments. Since this |
| 13 | crate contains only traits, inline functions and unit structs, it should |
| 14 | be a zero-cost abstraction. |
| 15 | |
| 16 | If the `std` feature is enabled, we provide blanket implementations for |
| 17 | all `std::io` types. If the `alloc` feature is enabled, we provide |
| 18 | implementations for `Vec<u8>`. In all cases, you get implementations |
| 19 | for byte slices. You can, of course, implement the traits for your own |
| 20 | types. |
| 21 | |
| 22 | License: Apache-2.0 |