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

#418 in No standard library

Download history 355/week @ 2024-08-26 204/week @ 2024-09-02 168/week @ 2024-09-09 473/week @ 2024-09-16 217/week @ 2024-09-23 174/week @ 2024-09-30 298/week @ 2024-10-07 643/week @ 2024-10-14 1161/week @ 2024-10-21 539/week @ 2024-10-28 197/week @ 2024-11-04 708/week @ 2024-11-11 685/week @ 2024-11-18 585/week @ 2024-11-25 829/week @ 2024-12-02 1484/week @ 2024-12-09

3,674 downloads per month
Used in 17 crates (via ckb-sdk)

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
~38K SLoC