3 releases
Uses new Rust 2024
new 0.1.2 | May 9, 2025 |
---|---|
0.1.1 | Apr 29, 2025 |
0.1.0 | Apr 29, 2025 |
#11 in #file-search
302 downloads per month
Used in rushed
6KB
129 lines
Keepr
Simple and customizable file finder for Rust.
Features
- Ignore specific directories
- Ignore specific files
- Match specific files
- Limit search depth
- Callback for each match
Example
use finder::Finder;
use std::path::Path;
fn main() {
let finder = Finder {
ignore_dirs: vec!["target".into(), ".git".into()],
ignore_files: vec!["Cargo.lock".into()],
match_files: vec!["main.rs".into()],
max_depth: Some(3),
};
finder.find("./", &mut |path: &Path| {
println!("Found file: {:?}", path);
});
}
Dependencies
~2.3–4MB
~72K SLoC