Rust-Slices
Convert string literals to static unsigned integer slices in compile time.
Usage
The input is a hexadecimal string literal with 0x prefix.
The size of input should be an even number.
And you can use any number of _ in the string literal to separate it for more readable.
Examples
use u8_slice;
const VAL: & = u8_slice!;
const NULL: & = u8_slice!;
Minimum Supported Rust Version
License
Licensed under either of Apache License, Version 2.0 or MIT License, at your option.