#xdr #macro-derive #codec #traits-structs #pack-unpack #rfc1014 #xdr-codec

macro nfs3_macros

A Rust library providing a derive macro for XDR codec implementation

1 unstable release

0.1.0 Feb 9, 2025

#464 in Procedural macros

Download history 93/week @ 2025-02-04 34/week @ 2025-02-11

127 downloads per month
Used in 2 crates (via nfs3_types)

Unlicense

10KB
150 lines

nfs3_macros

nfs3_macros is a Rust library that provides XdrCodec derive macro for the nfs3_types crate. XdrCodec macro automatically implements Pack and Unpack traits for structs and enums, simplifying serialization and deserialization of XDR encoded data.

Features

  • Automatically implements Pack and Unpack traits for structs and enums.
  • Supports named, unnamed, and unit structs.
  • Supports unit-only enums.

Dependencies

~210–650KB
~15K SLoC