How to write deserializer for custom binary protocol?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • nomicon

    The Dark Arts of Advanced and Unsafe Rust Programming

  • However, this is a wide topic out of scope for a Reddit comment, so maybe just read the Rustonomicon. It explains everything about data handling in Rust.

  • binrw

    A Rust crate for helping parse and rebuild binary data using ✨macro magic✨.

  • Serde can work but won't be easy, because It wants to deserialize everything. Take a look at the binrw crate(https://github.com/jam1garner/binrw) and define your binary layout with It, then you can actually create a wrapper which reads the file from any reader(be it a Cursor over the mmap'd slice or a file).

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts