#xdr #macro-derive #codec #nfs3 #traits-structs #rfc1014 #xdr-codec

macro nfs3_macros

A Rust library providing a derive macro for XDR codec implementation

3 releases (breaking)

new 0.3.0 Mar 2, 2025
0.2.0 Feb 22, 2025
0.1.0 Feb 9, 2025

#1098 in Procedural macros

Download history 99/week @ 2025-02-05 35/week @ 2025-02-12 149/week @ 2025-02-19 165/week @ 2025-02-26

448 downloads per month
Used in 3 crates (via nfs3_types)

Unlicense

12KB
194 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