qc-cli 0.5.1

qc is designed to give you an instant breakdown of your codebase composition. It uses Memory Mapping (Mmap) and Parallel Directory Walking to scan tens of thousands of files in milliseconds.
1
2
3
4
5
6
use crate::report::Report;

pub fn render_json(report: &Report) -> String {
    serde_json::to_string_pretty(report)
        .expect("failed to serialize report as JSON")
}