Skip to content

CBOR support #163

@pyfisch

Description

@pyfisch

I have written a CBOR serialization and deserialization crate for serde. The conforms to the CBOR spec, is tested and documented. Is it possible to move it to the serde-rs organization? I would also really like to hear some code review.

Serde supports annotations to values to assign a special meaning. For example the tag 32 is used to annotate URIs. To support these tags within serde a method for serde::de::Visitor to for tags would be useful. The signature could be something like fn visit_tag<D>(&mut self, tag: u64, _deserializer: &mut D) -> Result<Self::Value, D::Error> and default to ignoring the tag and just visit the inner value. There could be a similiar method for ser::Serializer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions