count the lines in a Rust source code file. this utility manages to ignore empty, whitespace-only or comment-only lines.
to install the binary:
cargo install srclen
to count the lines in (a) file(s), simply run the binary with the fils path(s) as arguments:
srclen file1.rs file2.rs