Rebuilding the Rust Book EPUB generation from the ground up to create the ultimate reading experience on mobile devices.
Ever tried to read dense Rust code on a 5-inch phone screen? Standard EPUB generators treat code blocks as stubborn, unbroken walls of text. You're left constantly swiping left and right, losing your place, and getting frustrated. The amazing Rust Programming Language Book deserved better than a generic, clunky formatting pipeline.
There was no EPUB generator in the project, not to mention one that would be optimized for mobile consumption. I have implemented a custom converter to EPUB format, in Rust, of course. I adjusted every code block and listing (most of which are code blocks) to be mobile optimized. The result is a perfectly compliant EPUB 3 archive, which can be consumed both on a big screen as well as on a small screen, almost without any significant losses. Of course, there is so much you can fit and optimize into a small screen.
This wasn't just about tweaking font sizes. I completely overhauled the structure so you can actually read almost any code in an "unbroken" format.