#cbor #adapter #minicbor #heapless #no-alloc #cboritem

no-std minicbor-adapters

Adapters between minicbor and other crates such as heapless and cboritem

1 unstable release

0.0.1 Dec 5, 2024

#8 in #minicbor

Download history 142/week @ 2024-12-02 18/week @ 2024-12-09

160 downloads per month

MIT/Apache

10KB

minicbor-adapters License: MIT OR Apache-2.0 minicbor-adapters on crates.io minicbor-adapters on docs.rs Source Code Repository

Adapters between minicbor and other crates

Some pairs of types don’t have a clear place to implement with minicbor: Due to the orphan rule, an implementation of minicbor’s traits for a type needs to be implemented either in minicobor itself or in the crate providing the type. As minicbor tries to keep its (even optional) dependency count at a minimum, and other crates can’t be expected to keep up with minicbor’s pace of releases, this crate provides thin wrapper types that provide the implementations.

Versioning

This crate has both minicbor and the related types as public dependencies. It will thus undergo a breaking change when minicbor updates, often lockstepping those to the latest version of the other crates.

Providing implementations for a larger matrix is generally feasilbe by depending on multiple versions of crates, and is sometimes maintainable when the breaking changes don’t affect the implementation (as is often the case with minicbor); nonetheless, this is currently not done for reasons of simplicity.

Dependencies

~675KB
~14K SLoC