| Crates.io | minicbor-adapters |
| lib.rs | minicbor-adapters |
| version | 0.0.6 |
| created_at | 2024-12-05 13:53:57.597446+00 |
| updated_at | 2025-08-07 22:30:25.960597+00 |
| description | Adapters between `minicbor` and other crates such as `heapless` and `cboritem` |
| homepage | |
| repository | https://codeberg.org/chrysn/minicbor-adapters |
| max_upload_size | |
| id | 1473225 |
| size | 40,232 |
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 minicbor itself or in the crate providing the type. As minicbor tries to keep its (even optional) dependency count at a minimum, and other crates are more general-purpose than minicbor, this crate provides thin wrapper types that provide the implementations.
This crate has both minicbor and the related types as public dependencies. It will thus undergo a breaking change when any of those crates has a breaking release, possibly multiple at the same time.
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 was often the case with minicbor < 1.0); nonetheless, this is currently not done for reasons of simplicity.