2 releases
Uses old Rust 2015
0.1.1 | Aug 23, 2018 |
---|---|
0.1.0 | Aug 22, 2018 |
#6 in #pictures
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
~5MB
~103K SLoC