This repository has been archived by the owner on Aug 15, 2021. It is now read-only.
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.
RawValue support like in serde_json #125
Open
Description
serde_json
has the ability to preserve chunks of unparsed JSON in a RawValue
(which can either borrow a slice of the original input or box+copy the bytes verbatim). This is very useful for low-level infrastructure code that pushes envelopes around only parsing part of the message and not the payload itself. I tried to implement this for CBOR using the high level APIs, but it seems like this is impossible without hacking serializer directly as there is no API to write bytes back directly on the serializer.