I'm revamping the include_dir crate and one feature I'd like to implement is automatic compression of all files that are embedded in your binary.
^-- I am currently running into this exact problem. I have a directory of files I want hard coded into my Rust app. What is the current state of the art / best practice for solving this problem ?
For technical questions regarding Rust on a technical forum dedicated to Rust you really can't go wrong posting your question.
I can't help specifically with Rust programs. I've not yet had to embed.
I have done that for many C++ programs and I can recommend a compression algorithm. The 7-Zip ultra compression has served me well. You, the programmer, pay for longer compression times. Your audience enjoys high compression and very fast decompression. In a pinch the command line 7-Zip tool can be used (e.g. troubleshooting a believed to be corrupt program). I don't know if the 7-Zip algorithms have been ported to Rust.