#metrics #tokei #loc #lines-of-code

app ruloc

A fast, single-purpose CLI tool to analyze Rust codebase metrics with test/production breakdowns

3 releases

Uses new Rust 2024

0.1.3 Oct 7, 2025
0.1.1 Oct 5, 2025
0.1.0 Oct 5, 2025

#257 in Debugging

MIT license

165KB
3K SLoC

ruloc

Crates.io Version

A minimalist, AST-driven Rust lines of code counter with intelligent production/test separation.

ruloc provides precise source code metrics for Rust projects by leveraging AST-based parsing to accurately distinguish between production and test code. It counts blank lines, comments, rustdoc documentation, and executable code—all while maintaining a simple, single-file architecture that's easy to understand and extend.