Expand description
§tokmd-model
Tier 1 (Logic)
This crate contains the core business logic for aggregating and transforming code statistics.
It handles the conversion from raw Tokei scan results into tokmd receipts.
§What belongs here
- Aggregation logic (rolling up stats to modules/languages)
- Deterministic sorting and filtering
- Path normalization rules
- Receipt generation logic
§What does NOT belong here
- CLI argument parsing
- Output formatting (printing to stdout/file)
- Tokei interaction (use tokmd-scan)
Functions§
- avg
- collect_
file_ rows - Collect per-file contributions, optionally including embedded language reports.
- create_
export_ data - create_
lang_ report - create_
module_ report - module_
key - Compute a “module key” from a normalized path.
- normalize_
path - Normalize a path for portable output.
- unique_
parent_ file_ count