#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

#7 in #include-str

Download history 56/week @ 2024-07-29 42/week @ 2024-08-05 45/week @ 2024-08-12 31/week @ 2024-08-19 86/week @ 2024-08-26 88/week @ 2024-09-02 62/week @ 2024-09-09 62/week @ 2024-09-16 78/week @ 2024-09-23 70/week @ 2024-09-30 16/week @ 2024-10-07 77/week @ 2024-10-14 68/week @ 2024-10-21 55/week @ 2024-10-28 59/week @ 2024-11-04 26/week @ 2024-11-11

210 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

~2MB
~41K SLoC