#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

#35 in #integer-value

Download history 4533/week @ 2024-10-15 3413/week @ 2024-10-22 3869/week @ 2024-10-29 4625/week @ 2024-11-05 4327/week @ 2024-11-12 3312/week @ 2024-11-19 3897/week @ 2024-11-26 4167/week @ 2024-12-03 3858/week @ 2024-12-10 4048/week @ 2024-12-17 1303/week @ 2024-12-24 3176/week @ 2024-12-31 4679/week @ 2025-01-07 3343/week @ 2025-01-14 3591/week @ 2025-01-21 3598/week @ 2025-01-28

15,881 downloads per month
Used in 5 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–650KB
~15K SLoC