Rust syntax extension that converts hex strings to byte literals
APACHE-2.0 License
Simple syntax extension that converts hex strings into byte strings.
#![feature(plugin)]
#![plugin(hex_literals)]
fn main() {
// prints "[0, 255]"
println!("{:?}", hex!("00ff"))
}
Licensed under either of
at your option.
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.