#enums #open #integer #newtype #integer-value

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

#27 in #integer-value

Download history 254/week @ 2023-12-23 556/week @ 2023-12-30 992/week @ 2024-01-06 1096/week @ 2024-01-13 1137/week @ 2024-01-20 1481/week @ 2024-01-27 1770/week @ 2024-02-03 1727/week @ 2024-02-10 1897/week @ 2024-02-17 3229/week @ 2024-02-24 3935/week @ 2024-03-02 3807/week @ 2024-03-09 3704/week @ 2024-03-16 2759/week @ 2024-03-23 4546/week @ 2024-03-30 5029/week @ 2024-04-06

16,566 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

~290–740KB
~18K SLoC