hex_literals 0.1.5

Macro that converts hex strings to byte strings
Documentation

Simple syntax extension that converts hex strings into byte strings.

#![feature(plugin)]
#![plugin(hex_literals)]

fn main() {
    // prints "[0, 255]"
    println!("{:?}", hex!("00ff"))
}

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.