#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 5/week @ 2023-12-01 3/week @ 2023-12-08 4/week @ 2023-12-15 11/week @ 2024-01-05 7/week @ 2024-01-12 13/week @ 2024-01-19 123/week @ 2024-01-26 33/week @ 2024-02-02 32/week @ 2024-02-09 34/week @ 2024-02-16 38/week @ 2024-02-23 74/week @ 2024-03-01 71/week @ 2024-03-08 56/week @ 2024-03-15

243 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
~38K SLoC