Replies: 1 comment
-
Hey! This is actually a bug with deku, see #397 and #398 Lmk if that MR helps you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm brand new to the Deku crate. Its really cool!
I'm looking to parse some binary packet data with this crate. The general structure of packets is a Header/Payload structure. The header is an Identifier and a total packet length (as u32).
My initial thought was to treat the payload section as an enum where the id is an external id passed from the header type through the context variable (referencing the docs)
Below is a minimal implementation for one variant but I'm getting a proc-macro error that I don't understand.
These are the errors:
I'd appreciate any pointers to what I may be doing wrong here.
Beta Was this translation helpful? Give feedback.
All reactions