enum_to_u8_slice_derive This crate is a fork of the enum_to_str_derive crate, written by @DCjanus. Unlike enum_to_str_derive which outputs a &'static str, this crate generates a &'static [u8] .