data-url-encode-macro

Crates.iodata-url-encode-macro
lib.rsdata-url-encode-macro
version1.0.1
sourcesrc
created_at2020-02-02 20:00:24.83778
updated_at2020-02-03 00:25:16.763231
descriptionRust macro to generate base64+percent-encoded strings suitable for data URLs in compile time
homepage
repositoryhttps://github.com/inikulin/data-url-encode-macro
max_upload_size
id204297
size2,605
Ivan Nikulin (inikulin)

documentation

https://docs.rs/data-url-encode-macro/

README

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>");
Commit count: 2

cargo fmt