binary_macros
binary_macros copied to clipboard
Rust macros for decoding base64 and hexadecimal -like encodings to [u8] literals.
Currently we can't do this because const variables cannot refer to statics (inside the macro expansion): ```rust const A: &[u8] = &base16!("55aa"); const B: [u8; 2] = base16!("55aa"); ``` This...
Hi, I came across this crate today and realised that it doesn't compile on Rust 1.51.0 ```rust error: proc-macro derive panicked --> signature_verifier/src/constants.rs:1:43 | 1 | pub const REPL_DEPLOY_PUBLIC_KEY: &[u8]...
Currently it will panic if use you write `base16!("ff")`
It would be nice if this crate were marked as `#![no_std]` so it could be used in programs which do not include the Rust standard library. I can submit a...