#base64 #include-str #macro #include #compile-time #string-literal

macro no-std include-base64

A macro to include a file as a base64-encoded string at compile time

1 unstable release

0.1.0 May 5, 2021

#8 in #include-str

Download history 71/week @ 2024-04-08 49/week @ 2024-04-15 90/week @ 2024-04-22 71/week @ 2024-04-29 63/week @ 2024-05-06 59/week @ 2024-05-13 65/week @ 2024-05-20 56/week @ 2024-05-27 54/week @ 2024-06-03 64/week @ 2024-06-10 117/week @ 2024-06-17 51/week @ 2024-06-24 33/week @ 2024-07-01 42/week @ 2024-07-08 158/week @ 2024-07-15 54/week @ 2024-07-22

291 downloads per month

MIT/Apache

7KB

include-base64

A macro to include a file as a base-64 encoded string literal at compile time.

const MY_FILE_BUT_IN_BASE64: &str = include_base64!("my_file.txt");

lib.rs:

include-base64 is a library for including a file as a base64 string, à la std::include_str!.

Dependencies

~1.5MB
~39K SLoC