#include #base64 #macro #include-str

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

#37 in #include

Download history 11/week @ 2023-05-27 78/week @ 2023-06-03 26/week @ 2023-06-10 49/week @ 2023-06-17 14/week @ 2023-06-24 20/week @ 2023-07-01 15/week @ 2023-07-08 23/week @ 2023-07-15 20/week @ 2023-07-22 13/week @ 2023-07-29 25/week @ 2023-08-05 36/week @ 2023-08-12 13/week @ 2023-08-19 11/week @ 2023-08-26 13/week @ 2023-09-02 23/week @ 2023-09-09

64 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
~36K SLoC