Self-nominating include-utils
A more powerful replacement for the standard include_str
macros.
Often you only need a specific part of the file, e.g. relevant lines for an example, or section of README.md. This crate provides macros that can include only part of a file, similar to the mdbook specific feature.
Imagine that you want to include "usage" section from your repository readme file to the crate documentation. But you do not want to see in crate documentation some parts of readme file, like header, badges, etc. With theinclude_str
macro you can only include the entire file content.
But with the include_md
macro you can include only a specific section of the file.