You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
minicbor-serde: add support for serializing / deserializing custom CBOR tags #44
I'm am interested in using minicbor-serde to deserialize CBOR payloads with custom CBOR tags. I noticed that the implementation for deserialize_* forwards to the decoder, which biases towards rejecting unknown tags, which makes sense.
I was wondering if you'd be open to take a patch to add support for serializing / deserializing custom CBOR tags in minicbor-serde? Also, has there been any previous discussion on this topic or implementation ideas for this?
Thank you for your interest in this project. This is the first time someone is discussing tag support for minicbor-serde (minicbor and minicbor-derive do support tags already). Maybe you would like to describe what you intend to add?
I looked into how other CBOR serde frameworks handle tags and I think ciborium's approach is pretty interesting. The library provides different wrapper types for tags (required, optional, any, etc) and it handles ser/de for tags through const generics.
My initial thought was to do something similar in minicbor-serde. Let me know what your thoughts are :)
Activity
twittner commentedon Nov 15, 2025
Thank you for your interest in this project. This is the first time someone is discussing tag support for minicbor-serde (minicbor and minicbor-derive do support tags already). Maybe you would like to describe what you intend to add?
mpanav commentedon Nov 16, 2025
I looked into how other CBOR serde frameworks handle tags and I think
ciborium's approach is pretty interesting. The library provides different wrapper types for tags (required,optional,any, etc) and it handles ser/de for tags through const generics.My initial thought was to do something similar in
minicbor-serde. Let me know what your thoughts are :)twittner commentedon Nov 27, 2025
Thanks @mpanav, feel free to open a PR.
mpanav commentedon Dec 21, 2025
Hey @twittner, I've opened up a PR. Let me know if you have any feedback on the change!
twittner commentedon May 23, 2026
#49 has been merged.