7 releases
Uses old Rust 2015
0.1.6 | Apr 30, 2017 |
---|---|
0.1.5 | Sep 3, 2016 |
0.1.4 | Apr 4, 2016 |
0.1.3 | Feb 1, 2016 |
0.1.1 | Nov 11, 2015 |
#12 in #convert-hex
26 downloads per month
7KB
54 lines
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
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.