Closed vmx closed 2 years ago
I don't like the TagStart
API, and frankly neither do I like ArrayStart
and MapStart
, but they are needed to implement serde. so if it's useful, I'm not against add it.
If we can't think of a better API, maybe in next version, we can put these easily abused methods into separate mod.
Thank you.
Thank you for merging it though, I'll think about a better API. May I request yet another release? This should hopefully be the last one I need to request, we are close to do a release of our library based on cbor4ii (switching from serde_cbor). From then on there should be less urgency and I can just move with the speed you naturally do releases.
I will release it later. :)
It's not easily possible to parse a tag without the value with the current public API. This commit introduces a
TagStart
, which is similar toArrayStart
andMapStart
. It only parses the tag into au64
, without advancing to the value.This is the API I came up with, as always, if there's a better way to solve my problem of parsing a tag value with the current public API, I'm happy to hear about it.