format-bytes 0.4.0

A macro to format bytestrings
Documentation
1
2
3
4
5
6
use format_bytes::format_bytes;

fn main() {
    format_bytes!("{:x}", 1);
    format_bytes!("{0}", 1);
}