#enums #primitive #conversion

macro no-std enum-repr-derive

Simple trait for converting enum to and from its primitive repr type

6 releases

0.2.0 Jul 28, 2021
0.1.5 Dec 26, 2020
0.1.3 Jan 25, 2020

#308 in #conversion

Download history 461/week @ 2024-01-04 402/week @ 2024-01-11 245/week @ 2024-01-18 234/week @ 2024-01-25 328/week @ 2024-02-01 212/week @ 2024-02-08 387/week @ 2024-02-15 309/week @ 2024-02-22 404/week @ 2024-02-29 153/week @ 2024-03-07 245/week @ 2024-03-14 378/week @ 2024-03-21 384/week @ 2024-03-28 232/week @ 2024-04-04 235/week @ 2024-04-11 231/week @ 2024-04-18

1,190 downloads per month
Used in 18 crates (2 directly)

MIT license

11KB
118 lines

enum-repr-derive

Crates.io Docs.rs CI Coverage Status

Installation

Cargo

  • Install the rust toolchain in order to have cargo installed by following this guide.
  • run cargo install enum-repr-derive

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.

Releasing

cargo release --skip-publish and let the github CD pipeline do the rest.

Dependencies

~1.5MB
~35K SLoC