Skip to main content

Crate comment_stripper_rs

Crate comment_stripper_rs 

Source

Structs§

Config
RunStats

Functions§

remove_backups
Walk the tree and delete every file whose name ends with the backup suffix.
restore_backups
Walk the tree and restore every backup file over its original, then delete the backup. A backup named foo.rs<suffix> is moved back to foo.rs, undoing a previous strip.
run
strip_comments
Strip comments from Rust source. When strip_docs is true, rustdoc comments are removed as well; otherwise they are preserved.
strip_non_doc_comments
Strip all non-rustdoc comments, preserving rustdoc comments (///, //!, /** */, /*! */). Equivalent to strip_comments(input, false).