sloc-rs
A lightweight Rust CLI for counting source lines of code across projects.
problem
Existing line-counting tools often provide more functionality than necessary for simple scripts and developer tooling.
motivation
I wanted a small, dependency-light crate that could be used directly from the command line.
solution
Developed a fast and straightforward library capable of traversing directories, filtering supported files, and producing source line statistics with a minimal API.
decisions
- Designed the crate to work as a standalone CLI.
- Kept the resulted data intentionally small.
- Focused on performance and low dependency overhead.
challenges
- Correctly handling recursive directory traversal.
- Supporting common source file extensions while remaining extensible.
lessons
- A well-designed library is often simpler than its implementation.
by the numbers
0
commits
0
downloads
0
releases