Cross language message format tool supporting rust

⚓ Rust    📅 2025-10-28    👤 surdeus    👁️ 6      

surdeus

Warning

This post was published 35 days ago. The information described in this article may have changed.

i have a need to describe a data structure that is cross language and good for serialization and it needs to support rust hence i am here asking

my requirements are:

  • generally describe a structure in C or rust
  • input format must be tech writer friendly.
  • must generate rust structs, c structures, and c# structs
  • must generate compile time tables to encode and decode the struct
  • in rust pass a slice and a compiled description of some type and get a struct back.
  • in rust pass a struct and a compiled description and it is encoded into a slice
  • that slice can be sent or received as a udp message or saved to a spi/i2c flash
  • embedded (and no_sys) friendly - no memory allocation

this screams asn.1 and it screams rust serdes but these do nit meet other requirements
i have also looked at facebook/apache thrift and protobufs each help but leave large holes

so i am looking for a suggestion that is rust friendly

5 posts - 3 participants

Read full topic

🏷️ Rust_feed