#base64 #proc-macro #data-url

macro include_data_uri

include a file as a data uri

4 releases

0.1.3 Jan 26, 2024
0.1.2 Jan 26, 2024
0.1.1 Jan 26, 2024
0.1.0 Jan 26, 2024

#1416 in Rust patterns

MIT license

24KB

include_data_uri

Crate Docs

A simple Proc Macro library for embedding a file as a base64 encoded data URI into your Rust program.

Bugs and Contributions welcome!


lib.rs:

This is a simple Proc Macro library, see include_data_uri for documentation

Dependencies

~0.8–1.3MB
~28K SLoC