Crates.io | rustdoc-stripper |
lib.rs | rustdoc-stripper |
version | 0.1.19 |
source | src |
created_at | 2016-03-14 20:12:53.508893 |
updated_at | 2023-04-28 21:18:44.520639 |
description | A tool to manipulate rustdoc comments |
homepage | https://github.com/GuillaumeGomez/rustdoc-stripper |
repository | https://github.com/GuillaumeGomez/rustdoc-stripper |
max_upload_size | |
id | 4451 |
size | 150,032 |
rustdoc-stripper
is a tool used to remove rustdoc comments from your code and save them in a
comments.cmts
file if you want to regenerate them.
Available options for rustdoc-stripper are:
By default, rustdoc is run with -s option:
./rustdoc-stripper -s
IMPORTANT: Only files ending with '.rs' will be stripped/regenerated.
You can prevent a doc comment to be stripped by prepending it by // rustdoc-stripper-ignore-next
.
You can mark the end of the block to ignore with // rustdoc-stripper-ignore-next-stop
.
Example:
// rustdoc-stripper-ignore-next
/// existing comment
// rustdoc-stripper-ignore-next-stop
/// This part will be removed when running rustdoc-stripper!
pub unsafe fn new() -> Foo {}