Docs.rs
comment-stripper-rs-0.1.0
comment-stripper-rs 0.1.0
Permalink
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Repository
crates.io
Source
Owners
danielclough
Dependencies
anyhow ^1.0
normal
clap ^4.5
normal
globset ^0.4
normal
ra-ap-rustc_lexer ^0.144.0
normal
walkdir ^2.5
normal
tempfile ^3.10
dev
Versions
33.33%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Crate comment_stripper_rs
comment_
stripper_
rs
0.1.0
All Items
Crate Items
Structs
Functions
Crate
comment_
stripper_
rs
Copy item path
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)
.