#enums #open #newtype #integer

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

#81 in #newtype

Download history 3325/week @ 2024-11-18 3077/week @ 2024-11-25 4524/week @ 2024-12-02 4150/week @ 2024-12-09 4558/week @ 2024-12-16 1412/week @ 2024-12-23 2704/week @ 2024-12-30 4750/week @ 2025-01-06 3704/week @ 2025-01-13 3334/week @ 2025-01-20 4058/week @ 2025-01-27 5209/week @ 2025-02-03 4059/week @ 2025-02-10 4839/week @ 2025-02-17 5247/week @ 2025-02-24 4719/week @ 2025-03-03

19,069 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

~205–640KB
~15K SLoC