#build-time #pixel #binary #image #embed #u8 #data

buildtime-png

Embed image as pixel data &[u8] into binary at build time

5 releases

0.1.4 Jul 6, 2019
0.1.3 Jul 6, 2019
0.1.2 Jul 6, 2019
0.1.1 Jul 6, 2019
0.1.0 Jul 6, 2019

#9 in #pixels

MIT license

9KB
156 lines

Embed image as pixel data &[u8] into binary at build time.

You don't have to add buildtime-png as a dependency - just add it as a build-dependency.

See code in sample folder for a sample usage.


lib.rs:

Embed image as pixel data &[u8] into binary at build time.

Dependencies

~780KB
~15K SLoC