#pictures #binary #gamedev #import #file #deployment #applications

app pictors

Create Rust code from binary files like pictures

2 releases

Uses old Rust 2015

0.1.1 Aug 23, 2018
0.1.0 Aug 22, 2018

#8 in #pictures

29 downloads per month

MIT license

6KB
103 lines

Pic to Rs

This very little application allows you to convert pictures or other binary files to Rust code.

Why?

If you don't want to deploy your software with additional files so that it is just one binary this is will be quite handy. Though it was originally developed for importing pictures you can import any file with it.

Usage

Linux: ./pictors -i inputfile.png -o outputfile.rs

If -o is not provided it will just create an output file with the same name as the input file but with the ".rs" extension. If the file already exists it will open the file and append the generated code.

Dependencies

~12MB
~80K SLoC