#source-file #line #count #cli

app srclen

count the lines in a Rust source code file

1 unstable release

0.1.0 Jul 10, 2021

#14 in #lines

MIT license

4KB
100 lines

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

No runtime deps