Crates.io | pictors |
lib.rs | pictors |
version | 0.1.1 |
source | src |
created_at | 2018-08-22 23:17:02.332055 |
updated_at | 2018-08-23 00:31:15.499506 |
description | Create Rust code from binary files like pictures. |
homepage | |
repository | https://github.com/Debily/Pic-to-Rs |
max_upload_size | |
id | 80820 |
size | 6,296 |
This very little application allows you to convert pictures or other binary files to Rust code.
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.
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.