Skip to main content

Crate rustbinary_derive

Crate rustbinary_derive 

Source
Expand description

Procedural derives used by rustbinary.

Applications normally enable the matching rustbinary feature and use the derives re-exported by the main crate. Generated paths intentionally refer to ::rustbinary, keeping the runtime traits and wire implementation owned by one crate.

Derive Macrosยง

BitPacked
Derives rustbinary::BitPack for structs and enums.
Fingerprint
Derives rustbinary::Fingerprint from structural type metadata.
Reflect
Derives allocation-free structural reflection metadata.
StaticSize
Derives compile-time normal and bit-packed size bounds.