data-url-encode-macro
Rust macro to generate base64+percent-encoded strings suitable for data URLs in compile time.
Example
use data_url_encode_macro::data_url_encode;
const HTML: &str = data_url_encode!("<h1>Hello, World!</h1>");
Rust macro to generate base64+percent-encoded strings suitable for data URLs in compile time
RustMIT
Rust macro to generate base64+percent-encoded strings suitable for data URLs in compile time.
use data_url_encode_macro::data_url_encode;
const HTML: &str = data_url_encode!("<h1>Hello, World!</h1>");