data-url-encode-macro-impl

Crates.iodata-url-encode-macro-impl
lib.rsdata-url-encode-macro-impl
version1.0.1
sourcesrc
created_at2020-02-02 19:59:54.974219
updated_at2020-02-03 00:24:43.803983
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
id204296
size2,678
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