code-docs-rs
Rust crate for documenting code with docstring
Basically it saves docstrings written in rust so you can access it in code and modify it if you wish to print to the user up-to-date documentation for config file for example
There are 3 macros in the crate
-
code_docs_structfor documenting a struct -
code_docs_enumfor documenting enums (only unit or tuple!) -
code_docs_constantsfor documenting constants
For examples check out the tests, or even read the full source code as it is VERY small