Srclen

count the lines in a Rust source code file. this utility manages to ignore empty, whitespace-only or comment-only lines.

Install

to install the binary: cargo install srclen

Usage

to count the lines in (a) file(s), simply run the binary with the fils path(s) as arguments: srclen file1.rs file2.rs