Crates.io | keepr |
lib.rs | keepr |
version | 0.1.5 |
created_at | 2025-04-29 04:25:26.706012+00 |
updated_at | 2025-07-29 07:03:23.203416+00 |
description | Simple and customizable file finder for Rust. |
homepage | https://gitlab.com/traxix/keepr |
repository | https://gitlab.com/traxix/keepr |
max_upload_size | |
id | 1653090 |
size | 8,728 |
Simple and customizable file finder for Rust.
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);
});
}