#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 63/week @ 2024-11-23 67/week @ 2024-11-30 105/week @ 2024-12-07 96/week @ 2024-12-14 12/week @ 2024-12-21 6/week @ 2024-12-28 68/week @ 2025-01-04 104/week @ 2025-01-11 72/week @ 2025-01-18 37/week @ 2025-01-25 66/week @ 2025-02-01 87/week @ 2025-02-08 65/week @ 2025-02-15 92/week @ 2025-02-22 54/week @ 2025-03-01 35/week @ 2025-03-08

265 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
~42K SLoC