#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

#33 in #integer-value

Download history 1225/week @ 2024-07-29 1626/week @ 2024-08-05 1896/week @ 2024-08-12 2173/week @ 2024-08-19 3244/week @ 2024-08-26 2448/week @ 2024-09-02 2239/week @ 2024-09-09 2679/week @ 2024-09-16 3133/week @ 2024-09-23 2814/week @ 2024-09-30 4313/week @ 2024-10-07 4839/week @ 2024-10-14 3218/week @ 2024-10-21 4356/week @ 2024-10-28 4488/week @ 2024-11-04 4184/week @ 2024-11-11

16,377 downloads per month
Used in 4 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

~240–690KB
~16K SLoC