Skip to main content

Crate tokmd_scan

Crate tokmd_scan 

Source
Expand description

§tokmd-scan

Tier 1 (Adapter)

This crate adapts the tokei library for use within tokmd. It isolates the dependency on tokei to a single location.

§What belongs here

  • Tokei configuration and invocation
  • Mapping tokmd args to tokei config

§What does NOT belong here

  • Business logic (filtering, sorting, aggregation)
  • Output formatting
  • Receipt construction

Structs§

InMemoryFile
A single logical file supplied from memory rather than the host filesystem.
MaterializedScan
A scan result that keeps its backing temp root alive for downstream row modeling.

Functions§

config_from_scan_options
Build the tokei config used for a scan from clap-free ScanOptions.
normalize_in_memory_paths
Normalize ordered in-memory inputs into deterministic logical paths.
scan
Scans a set of paths and computes line counts for each language found.
scan_in_memory