Can anyone recommend crates for parsing simple binary data? I’d like something more declarative than manually writing out byteorder reads, if possible. I only need packed structs containing simple types: integers of various lengths, bitfields, arrays and other structures. Also length prefixed strings but they’re rare enough that doing it manually isn’t too bad.
In Python I’m using ctypes structures so something similar would ease the learning curve for me but I’m not married to that system if there’s something better.