Crates.io | data-url-encode-macro |
lib.rs | data-url-encode-macro |
version | 1.0.1 |
source | src |
created_at | 2020-02-02 20:00:24.83778 |
updated_at | 2020-02-03 00:25:16.763231 |
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 | 204297 |
size | 2,605 |
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>");