#build-time #binary #u8 #embed #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

#46 in #build-time

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

~755KB
~14K SLoC