#rustdoc #doc #strip #tool

bin+lib rustdoc-stripper

A tool to manipulate rustdoc comments

7 releases

new 0.1.6 Jun 14, 2019
0.1.5 Sep 14, 2017
0.1.4 Jul 10, 2017
0.1.2 Apr 8, 2016
0.1.1 Mar 31, 2016

#9 in #tool

Download history 198/week @ 2019-03-01 300/week @ 2019-03-08 80/week @ 2019-03-15 227/week @ 2019-03-22 17/week @ 2019-03-29 58/week @ 2019-04-05 125/week @ 2019-04-12 261/week @ 2019-04-19 149/week @ 2019-04-26 139/week @ 2019-05-03 368/week @ 2019-05-10 377/week @ 2019-05-17 134/week @ 2019-05-24 160/week @ 2019-05-31 592/week @ 2019-06-07

904 downloads per month
Used in 26 crates (17 directly)

Apache-2.0

67KB
1.5K SLoC

rustdoc-stripper Build Status

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.

###Options

Available options for rustdoc-stripper are:

  • -h | --help : Displays this help
  • -s | --strip : Strips the current folder files and create a file with rustdoc information (comments.cmts by default)
  • -g | --regenerate : Recreate files with rustdoc comments from reading rustdoc information file (comments.cmts by default)
  • -n | --no-file-output : Display rustdoc information directly on stdout
  • -i | --ignore [filename]: Ignore the specified file, can be repeated as much as needed, only used when stripping files, ignored otherwise
  • -d | --dir [directory] : Specify a directory path to work on, optional
  • -v | --verbose : Activate verbose mode
  • -f | --force : Remove confirmation demands
  • -m | --ignore-macros : macros in hierarchy will be ignored (so only macros with doc comments will appear in the comments file)
  • -o | --comment-file : specify the file within you want to save rustdoc information

By default, rustdoc is run with -s option:

./rustdoc-stripper -s

IMPORTANT: Only files ending with '.rs' will be stripped/regenerated.

No runtime deps