#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

7 releases (4 breaking)

new 0.5.1 May 29, 2024
0.5.0 Feb 15, 2024
0.4.1 Nov 18, 2023
0.4.0 Sep 2, 2023
0.1.0 Sep 2, 2022

#27 in #integer-value

Download history 1752/week @ 2024-02-07 1981/week @ 2024-02-14 2318/week @ 2024-02-21 3966/week @ 2024-02-28 3740/week @ 2024-03-06 3843/week @ 2024-03-13 3330/week @ 2024-03-20 2654/week @ 2024-03-27 7449/week @ 2024-04-03 2742/week @ 2024-04-10 2651/week @ 2024-04-17 1365/week @ 2024-04-24 1311/week @ 2024-05-01 1147/week @ 2024-05-08 937/week @ 2024-05-15 1023/week @ 2024-05-22

4,632 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

~280–730KB
~17K SLoC