-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Unable to deserialize internally tagged enum containing semantically tagged CBOR #71
Comments
I believe this error is triggered by this line: ciborium/ciborium/src/de/mod.rs Line 180 in a6aeb16
This is triggered because |
This is a nasty bug, and is basically requiring us to switch off ciborium to serde_cbor to represent this internally tagged API we're working with. Hoping to get this fixed |
I'll take a look at this, hopefully in the coming days. |
Let me know if there's anything I can provide to help! |
I think the basic problem is using an enum ( |
@benwis the original example in the issue is enough to trigger the problem. I don't have the experience to figure this out any time soon, so I was hoping there would be some assistance in the form of a PR, even if incomplete that could get me going in the right direction. |
Is there any progress or workaround ? |
No unfortunately. See my prior comment. |
Is there an existing issue for this?
Code of Conduct
Current Behaviour
The following program crashes:
With the error:
Expected Behaviour
The
DistinctThings
enum should be succesfully deserialized.Environment Information
Linux manjaro-desktop 5.15.85-1-MANJARO #1 SMP PREEMPT Wed Dec 21 21:15:06 UTC 2022 x86_64 GNU/Linux
Steps To Reproduce
No response
The text was updated successfully, but these errors were encountered: