| Crates.io | rust-fd |
| lib.rs | rust-fd |
| version | 0.1.0 |
| created_at | 2025-11-24 02:40:38.265403+00 |
| updated_at | 2025-11-24 02:40:38.265403+00 |
| description | A fast file finder written in Rust with glob pattern matching |
| homepage | |
| repository | https://github.com/atiyil/rust-fd |
| max_upload_size | |
| id | 1947290 |
| size | 15,301 |
A fast file finder written in Rust, inspired by fd.
*.rs, file*, etc.)git clone https://github.com/atiyil/rust-fd.git
cd rust-fd
cargo build --release
The binary will be at target/release/rust-fd.
cargo install rust-fd
# Find all files and directories
rust-fd
# Find all Rust files
rust-fd "*.rs"
# Find all files starting with "test"
rust-fd "test*"
# Find files containing "config"
rust-fd "*config*"
rust-fd uses glob patterns for matching:
* - Matches any sequence of characters? - Matches any single character[abc] - Matches any character in the set[!abc] - Matches any character not in the setNote: Patterns are case-sensitive.
# Find all JavaScript and TypeScript files
rust-fd "*.js"
rust-fd "*.ts"
# Find all test files
rust-fd "*test*"
# Find README files
rust-fd "README*"
# Find all files (no pattern)
rust-fd
rust-fd uses an iterative approach with an explicit stack for directory traversal, which:
Tested on:
# Run the automated test suite
./test_pattern_matching.sh
# Or run with cargo
cargo test
rust-fd/
├── src/
│ └── main.rs # Main implementation
├── test_cases/ # Test files and directories
├── test_pattern_matching.sh # Test script
├── Cargo.toml
└── README.md
Contributions are welcome! Feel free to open issues or submit pull requests.
MIT License - see LICENSE for details.
Inspired by fd - a fast alternative to find.