Skip to main content

tokmd_analysis/
lib.rs

1//! # tokmd-analysis
2//!
3//! **Tier 3 (Orchestration)**
4//!
5//! Analysis logic and optional enrichers for tokmd receipts. Computes derived
6//! metrics and orchestrates optional analysis modules based on presets.
7//!
8//! ## What belongs here
9//! * Analysis orchestration and module coordination
10//! * Derived metric computation
11//! * Preset-based feature inclusion
12//! * Enricher implementations (archetype, topics, git metrics, etc.)
13//!
14//! ## What does NOT belong here
15//! * Output formatting (use tokmd-analysis-format)
16//! * CLI argument parsing
17//! * File modification
18
19mod analysis;
20mod archetype;
21#[cfg(feature = "walk")]
22mod assets;
23#[cfg(feature = "git")]
24mod churn;
25#[cfg(feature = "content")]
26mod content;
27mod derived;
28#[cfg(all(feature = "content", feature = "walk"))]
29mod entropy;
30#[cfg(feature = "git")]
31mod fingerprint;
32mod fun;
33#[cfg(feature = "git")]
34mod git;
35#[cfg(all(feature = "content", feature = "walk"))]
36mod license;
37mod topics;
38mod util;
39
40pub use analysis::{
41    AnalysisContext, AnalysisLimits, AnalysisPreset, AnalysisRequest, ImportGranularity, analyze,
42};
43pub use util::normalize_root;