JulianSchmid / etherparse

A rust library for parsing ethernet & ethernet using protocols.
Apache License 2.0
285 stars 54 forks source link

Support for #[derive(Serialize, Deserialize)] for all major structs? #69

Open robs-zeynet opened 12 months ago

robs-zeynet commented 12 months ago

I've run into some issues where I've wanted to write packets to disk in their parsed form, not in their on-the-wire format. What are folks thoughts about peppering all of the major structs (PacketHeaders, PacketSlice, and transitively) to auto-derive Serialize and Deserialize? Happy to write it myself - just wanted to ask first.

JulianSchmid commented 12 months ago

Hi @robs-zeynet ,

Sure I would love it.

Here are some notes from my side:

Greets Julian

robs-zeynet commented 5 months ago

Hmm... I guess I never did this; ended up hacking around it in my own code. Sorry to bait and switch here.