I am looking for a rust library that is similar to python’s dpkt or Go’s gopacket for fast parsing of network protocols. I gave a quick look at serde but it seems more appropriate for de/serializing rust structs rather then parsing the arbitrariness (sp?) of random network protocols.
The reason I would like to use rust for this is that I need to parse packets from multiple SPAN ports where performance is important, and a zero cost library sound very appealing. Additionally, there are a few protocols I need to parse that I have only found parsers written for Wireshark and it would probably be easier for me to integrate with/slowly convert/copy paste from.