pshc / hex_literals

Rust syntax extension that converts hex strings to byte literals

Repository from Github https://github.compshc/hex_literalsRepository from Github https://github.compshc/hex_literals

hex_literals Build Status Cargo

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.

About

Rust syntax extension that converts hex strings to byte literals

License:Apache License 2.0


Languages

Language:Rust 100.0%