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

Re-exports§

pub use exclude::add_exclude_pattern;
pub use exclude::has_exclude_pattern;
pub use exclude::normalize_exclude_pattern;
pub use math::gini_coefficient;
pub use math::percentile;
pub use math::round_f64;
pub use math::safe_ratio;
pub use path::normalize_rel_path;
pub use path::normalize_slashes;
pub use tokeignore::InitArgs;
pub use tokeignore::InitProfile;
pub use tokeignore::init_tokeignore;

Modules§

exclude
Deterministic exclude-pattern normalization and dedupe helpers.
math
Deterministic numeric and statistical helpers.
path
Single-responsibility path normalization and root bounding.
tokeignore
tokmd-scan::tokeignore
walk
File walking and repository asset discovery helpers.

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