Announcement: XDR codec generator


Hi all,

I’ve just pushed up an initial version of an XDR serialization library and code generator to There are two crates:

  • xdr-codec, the runtime library which provides serialization for the basic XDR types, and Pack and Unpack traits which other types can implement, and
  • xdrgen, which can parse RFC4506 XDR specs (.x files) and generates definitions for the types defined there and implementations of Pack/Unpack for them.

This is specifically intended to cope with previously defined .x files to make it easy to write Rust code to interoperate with existing protocol definitions.

The code is on github: xdrgen, and xdr-codec. Comments, contributions, bug reports, etc welcome!