Just gotta deal with 1) putting some HTML in a rust binary will probably end up with a 2TB file 2) figure out how to easily serialize an image into a rust binary
@silverwizard This is perhaps terrible, but could you not just create a program that you could pipe an arbitrary binary file into it and it would output a rust module that defines an array of bytes that matches what was fed into it?
Yeah, basically a makefile that runs markdown on the file, makes HTML, then objcopies the html and images into a rust file, and then populates the valid pages header with the list.
The next step is all the objcopy shit - mostly because I don't have a sense of how to do what I want to do in rust yet, since I've probably written a total of like... 2 hours of rust.
And right now the code just sits on my laptop, sorry. I'll probably open it once it's in a reasonably acceptable place.
silverwizard
1) putting some HTML in a rust binary will probably end up with a 2TB file
2) figure out how to easily serialize an image into a rust binary
Hypolite Petovan likes this.
Jonathan Lamothe
•silverwizard
Jonathan Lamothe
•silverwizard
Jonathan Lamothe
•silverwizard
The next step is all the objcopy shit - mostly because I don't have a sense of how to do what I want to do in rust yet, since I've probably written a total of like... 2 hours of rust.
And right now the code just sits on my laptop, sorry. I'll probably open it once it's in a reasonably acceptable place.