#enums #open #newtype #integer

macro no-std open-enum-derive

An attribute for generating "open" C-like enums, those that accept any integer value, by using a newtype struct and associated constants

6 releases (breaking)

0.5.0 Feb 15, 2024
0.4.1 Nov 18, 2023
0.4.0 Sep 2, 2023
0.3.0 Sep 12, 2022
0.1.0 Sep 2, 2022

#69 in #newtype

Download history 1125/week @ 2024-01-19 1429/week @ 2024-01-26 1672/week @ 2024-02-02 1763/week @ 2024-02-09 1929/week @ 2024-02-16 2896/week @ 2024-02-23 3844/week @ 2024-03-01 4019/week @ 2024-03-08 3795/week @ 2024-03-15 2709/week @ 2024-03-22 3697/week @ 2024-03-29 6382/week @ 2024-04-05 2870/week @ 2024-04-12 2297/week @ 2024-04-19 1252/week @ 2024-04-26 1441/week @ 2024-05-03

8,226 downloads per month
Used in 3 crates (via open-enum)

Apache-2.0

25KB
521 lines

open-enum-derive

This is the proc macro implementation crate for open-enum. Users should use that instead of this crate directly.

Dependencies

~305–760KB
~18K SLoC