The way this is implemented currently is that the readme is generated from the readme template (README.tpl) and the crate-level doc comments in lib.rs.
see https://github.com/livioribeiro/cargo-readme for details
Doing it this way ensures that any code examples in the README are tested in CI