I'm trying to download The Rust Programming Language book in epub format using the mdbook-epub tool, but the output file doesn't contain any code snippets. Instead it has placeholders like this:
{{#include ../listings/ch02-guessing-game-tutorial/listing-02-01/src/main.rs:io}}
Some of those placeholders use rustdoc_include
.
How can I generate a file with the embedded snippets?
I was using a mismatching version of
mdbook
. This solves the problem:For completeness, the book can then be generated by editing
book.toml
and adding the[output.epub]
line at the end. Thenmdbook build
generates the epub file atbook/epub/The Rust Programming Language.epub
.