add readme, docs, fmt

This commit is contained in:
Chris Beck
2025-12-18 14:02:31 -07:00
parent d2eca44587
commit dca629d2cf
7 changed files with 38 additions and 4 deletions
@@ -1,5 +1,13 @@
use globset::{Glob, GlobMatcher};
/// Helper which removes prefixes (represented as a glob) from a file path,
/// trying each one in sequence.
///
/// For example, with the globset:
/// [ "/home/*/", ".cargo/registry/src/*/" ]
///
/// this can remove a lot of noise if you build from your home directory with
/// default cargo settings, regardless of what your username is etc.
pub struct StripPathPrefixes {
finders: Vec<Finder>,
}