LOC

A fast command-line line counter written in Rust. Recursively scans a directory, groups files by language, and prints a summary table.

About this project

LOC (lines of code) is a Rust CLI that recursively scans a directory, infers language from filename and extension, and prints a table of file count, blank lines, code lines, and total lines.

Traversal uses the ignore crate so typical VCS and ignore files are respected. Files that are not valid UTF-8 text are skipped. Blank lines are empty lines; whitespace-only lines count as code.

Install with the Unix install script, or build from source with Cargo. Pass an optional directory argument; the default is the current working directory.

Highlights

CLI tool: Fast recursive scan from the terminal, with an optional path argument.

Per-language breakdown: Groups files by detected language and prints blank, code, and total lines.

More projects

Nairobi real estate platform with a fast public site, SEO-driven listing pages, and a CRM that captures WhatsApp leads through the Meta API.

Nuxt.jsSEOCRMWhatsAppMeta API
Read more

Deterministic WhatsApp insurance bot with an integrated back office — rule-driven state machines, Meta webhooks, and server-side session persistence.

Nuxt.jsTypeScriptWhatsAppState MachinesWebhooksM-Pesa
Read more

Architected a multi-region event-driven platform from monolith to polyglot microservices. The Rust analytics migration shaped the systems programming focus today.

2019–2025

RustMicroservicesEvent-drivenLaravel
Read more

Want to work together?

Client software work, founder tech advisory, and collaboration.

Get in touch