minicbor-embedded-io

Crates.iominicbor-embedded-io
lib.rsminicbor-embedded-io
version0.3.0
sourcesrc
created_at2023-10-16 11:58:14.569491
updated_at2024-04-24 08:22:06.830541
descriptionAsync reader and writer types for minicbor
homepage
repositoryhttps://github.com/rmja/minicbor-embedded-io
max_upload_size
id1004693
size26,353
Rasmus Melchior Jacobsen (rmja)

documentation

README

Async CBOR Reader and Writer

CI crates.io docs.rs

The minicbor-embedded-io crate implements async read and write for the minicbor crate on top of the embedded-io-async Read and Write traits.

The library is inspired by the way the Dahomey.Cbor library does asynchronous read and write. For example, to read an array, one must implement the CborArrayReader trait, which is called for each array item. The callback can either actually read the item, or return an error indicating that it needs more bytes to fully decode - in this case the reader will be called again whenever more bytes become available.

Commit count: 52

cargo fmt