#file-search #finder #cli #rust

keepr

Simple and customizable file finder for Rust

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

Download history 200/week @ 2025-04-27 102/week @ 2025-05-04

302 downloads per month
Used in rushed

MIT license

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