Skip to content

minicbor-serde: add support for serializing / deserializing custom CBOR tags #44

Closed

Description

@mpanav

Hey!

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?

BTW, thanks for the awesome project!

Activity

  1. twittner commented on Nov 15, 2025

    @twittner
    Owner

    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?

  2. mpanav commented on Nov 16, 2025

    @mpanav
    ContributorAuthor

    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 :)

  3. twittner commented on Nov 27, 2025

    @twittner
    Owner

    Thanks @mpanav, feel free to open a PR.

  4. mpanav commented on Dec 21, 2025

    @mpanav
    ContributorAuthor

    Hey @twittner, I've opened up a PR. Let me know if you have any feedback on the change!

  5. twittner commented on May 23, 2026

    @twittner
    Owner

    #49 has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions