#io #read #write

no-std dev ciborium-io

Simplified Read/Write traits for no_std usage

1 unstable release

Uses new Rust 2021

0.2.0 Nov 21, 2021

#751 in Embedded development

Download history 5564/week @ 2022-08-15 8208/week @ 2022-08-22 7197/week @ 2022-08-29 8276/week @ 2022-09-05 33858/week @ 2022-09-12 36053/week @ 2022-09-19 50322/week @ 2022-09-26 50267/week @ 2022-10-03 62611/week @ 2022-10-10 74878/week @ 2022-10-17 82609/week @ 2022-10-24 87306/week @ 2022-10-31 94085/week @ 2022-11-07 87452/week @ 2022-11-14 78254/week @ 2022-11-21 95945/week @ 2022-11-28

361,674 downloads per month
Used in 480 crates (8 directly)

Apache-2.0

10KB
183 lines

Workflow Status Average time to resolve an issue Percentage of issues still open Maintenance

ciborium-io

Simple, Low-level I/O traits

This crate provides two simple traits: Read and Write. These traits mimic their counterparts in std::io, but are trimmed for simplicity and can be used in no_std and no_alloc environments. Since this crate contains only traits, inline functions and unit structs, it should be a zero-cost abstraction.

If the std feature is enabled, we provide blanket implementations for all std::io types. If the alloc feature is enabled, we provide implementations for Vec<u8>. In all cases, you get implementations for byte slices. You can, of course, implement the traits for your own types.

License: Apache-2.0

No runtime deps

Features

  • alloc
  • std