{"id":44462127,"url":"https://github.com/toast1599/qc","last_synced_at":"2026-03-01T14:03:46.338Z","repository":{"id":337916177,"uuid":"1155804213","full_name":"toast1599/qc","owner":"toast1599","description":"Because `tokei` wasn't fast enough. A parallel Rust-based source code auditor.","archived":false,"fork":false,"pushed_at":"2026-02-21T16:34:18.000Z","size":91,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-21T17:45:17.211Z","etag":null,"topics":["audit","cargo","cli","cloc","code","count","linux","parallel-computing","qc","rust","sloc","tokei"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toast1599.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-11T23:23:40.000Z","updated_at":"2026-02-21T16:34:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/toast1599/qc","commit_stats":null,"previous_names":["toast1599/qc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/toast1599/qc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toast1599%2Fqc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toast1599%2Fqc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toast1599%2Fqc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toast1599%2Fqc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toast1599","download_url":"https://codeload.github.com/toast1599/qc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toast1599%2Fqc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29861805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audit","cargo","cli","cloc","code","count","linux","parallel-computing","qc","rust","sloc","tokei"],"created_at":"2026-02-12T19:10:37.116Z","updated_at":"2026-02-26T14:01:24.872Z","avatar_url":"https://github.com/toast1599.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qc (Quick Count) 🚀\n\nA high-performance source code auditor and line counter built in modern Rust. \n\n`qc` is designed to provide an instant, high-fidelity breakdown of codebase composition. By leveraging **Memory Mapping (Mmap)** and **Parallel Directory Walking**, it can scan tens of thousands of files in milliseconds.\n\n## ⚡ Benchmarks\nIn head-to-head comparisons against `tokei` on the Linux Kernel source tree, `qc` performed **~1.8x faster** over 100 runs.\n\n| Tool | Mean Time | Speedup |\n| :--- | :--- | :--- |\n| **qc** | **568.9 ms** | **1.81x** |\n| tokei | 1032 ms | 1.00x |\n\n## ✨ Features\n\n* **Modern Rust Core:** Built on the **Rust 2024 Edition** for maximum safety and performance.\n* **Hybrid I/O Engine:** Automatically switches between standard `fs::read` and `Mmap` based on file size to optimize throughput.\n* **Deep Heuristics:** Identifies files via extensions, filenames, and **shebang detection** (e.g., `#!/bin/bash`).\n* **Line Composition:** Accurately distinguishes between Code, Comments, and Blank lines using a fast, byte-level state machine.\n* **Terminal Visuals:** Includes a color-coded language composition bar and a code/comment heatmap.\n* **Rich Output:** Supports human-readable text output or machine-readable **JSON** for CI/CD integration.\n* **Respectful:** Powered by the `ignore` crate to automatically honor `.gitignore`, `.ignore`, and hidden file rules.\n\n## 🛠 Installation\n\n### From Source\nEnsure you have the latest Rust toolchain installed (1.85+ recommended for Edition 2024).\n\n1.  **Clone the repository:**\n    ```bash\n    git clone https://github.com/toast1599/qc.git\n    cd qc\n    ```\n\n2.  **Build and Install:**\n    ```bash\n    cargo install --path .\n    ```\n    *Or use the provided `Makefile` to automate the build process.*\n\n## 🚀 Usage\n\nRun `qc` in any directory to start an audit:\n\n```bash\nqc .\n```\n\n### Options\n* `qc [path]` — Scan a specific directory (defaults to `.`).\n* `qc -\u003cnumber\u003e` — Limit the \"Top Files\" list (e.g., `qc -20`).\n* `qc --json` — Output results as a JSON object.\n* `qc --json-out \u003cpath\u003e` — Save JSON results directly to a file.\n* `qc --rs --py` — Filter results to specific languages (e.g., Rust and Python).\n\n## 📊 Performance Philosophy\nUnlike traditional counters that rely on heavy AST parsing, `qc` uses a **byte-level scanning heuristic**. This avoids the overhead of full UTF-8 validation while maintaining high accuracy for line-type classification, making it ideal for massive monorepos where speed is the primary constraint.\n\n## ⚖️ License\nThis project is licensed under **GPL-3.0-or-later** — see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoast1599%2Fqc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoast1599%2Fqc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoast1599%2Fqc/lists"}