mozilla/rust — pull request #14573 by apoelstra (2014-05-31 23:49:07+00:00)
Title: Add hex_bytes! macro to interpret string literals as hex strings

When testing network serialization routines for a recent project, I found it would be very useful for readability's sake to have a way to write [u8, ..N] byte arrays as hexadecimal strings. This patch introduces the hex_bytes! macro for this purpose.