Use ciborium-io for no_std and no_alloc I/O
mainThe ciborium-io crate provides low-level Read and Write traits designed for environments where std::io is unavailable, such as no_std or no_alloc contexts. These traits are simplified versions of the standard library counterparts and are designed to be zero-cost abstractions.
Supported Implementations
- Byte Slices: Always supported.
std::iotypes: Supported if thestdfeature is enabled (via blanket implementations).Vec<u8>: Supported if theallocfeature is enabled.- Custom Types: You can implement the
ReadandWritetraits for your own types to integrate with the rest of theciboriumecosystem.