Conversation
Notices
-
Embed this notice
I have multiple working pages and CSS for my statically linked website working
Soon my terrible idea will bear fruit
-
Embed this notice
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
-
Embed this notice
@me I was just making fun of Rust's binary file sizes
-
Embed this notice
2TB of HTML?
-
Embed this notice
@me 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.
-
Embed this notice
@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?
-
Embed this notice
@me so firstly - right now it's just me doing:
pub static {
index: &str = "<html>...
</html>"};
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.
-
Embed this notice
@silverwizard I'm curious to see this now. Is there a git repo you can point me at?