#proc-macro #reflection #enums

macro enum_companion_derive

A procedural macro for generating companion enums for structs

2 releases

Uses new Rust 2024

0.1.4 Oct 2, 2025
0.1.2 Jul 10, 2025

#183 in #reflection

Download history

147 downloads per month
Used in enum_companion

MIT license

21KB
443 lines

Enum Companion Derive

This crate provides the procedural macro for enum_companion.

Please refer to the enum_companion documentation for detailed usage and examples.


Enum Companion Derive

A procedural macro for generating companion enums for structs. See the main crate for usage details.

This crate is meant to be used as a dependency of the main crate and not directly.

Dependencies

~0.5–0.9MB
~19K SLoC