Skip to content

Rust macro to generate base64+percent-encoded strings suitable for data URLs in compile time

License

Notifications You must be signed in to change notification settings

inikulin/data-url-encode-macro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>");

About

Rust macro to generate base64+percent-encoded strings suitable for data URLs in compile time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages