Crates.io | data-url-encode-macro-impl |
lib.rs | data-url-encode-macro-impl |
version | 1.0.1 |
source | src |
created_at | 2020-02-02 19:59:54.974219 |
updated_at | 2020-02-03 00:24:43.803983 |
description | Rust macro to generate base64+percent-encoded strings suitable for data URLs in compile time |
homepage | |
repository | https://github.com/inikulin/data-url-encode-macro |
max_upload_size | |
id | 204296 |
size | 2,678 |
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>");