#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

8 releases (4 breaking)

0.5.2 Jun 17, 2024
0.5.1 May 29, 2024
0.5.0 Feb 15, 2024
0.4.1 Nov 18, 2023
0.1.0 Sep 2, 2022

#30 in #integer-value

Download history 1202/week @ 2024-06-02 1160/week @ 2024-06-09 1130/week @ 2024-06-16 894/week @ 2024-06-23 1061/week @ 2024-06-30 1546/week @ 2024-07-07 1388/week @ 2024-07-14 1079/week @ 2024-07-21 1258/week @ 2024-07-28 1561/week @ 2024-08-04 1894/week @ 2024-08-11 2212/week @ 2024-08-18 3213/week @ 2024-08-25 2461/week @ 2024-09-01 2282/week @ 2024-09-08 2552/week @ 2024-09-15

10,611 downloads per month
Used in 3 crates (via open-enum)

Apache-2.0

25KB
529 lines

open-enum-derive

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

Dependencies

~210–640KB
~15K SLoC