tokmd-settings
Clap-free settings and TOML config for tokmd workflows.
Problem
Lower-tier crates need one config shape without depending on Clap or the CLI layer.
What it gives you
- Scan inputs:
ScanOptions,ScanSettings - Workflow settings:
LangSettings,ModuleSettings,ExportSettings,AnalyzeSettings,CockpitSettings,DiffSettings - TOML config types:
TomlConfig,ScanConfig,ModuleConfig,ExportConfig,AnalyzeConfig,ContextConfig,BadgeConfig,GateConfig,ViewProfile - Convenience re-exports:
ChildIncludeMode,ChildrenMode,ConfigMode,ExportFormat,RedactMode
API / usage notes
ScanOptionsmirrors the scan-relevant CLI flags without the Clap dependency.ScanSettings::current_dir()andScanSettings::for_paths(...)cover the common library entry points.TomlConfig::from_file(...)is the only I/O convenience; the rest of the crate is pure data and serde.src/lib.rsis the canonical source for defaults, flattening, and TOML shapes.
Go deeper
- Tutorial: tokmd README
- How-to: Configuration file reference
- Reference: src/lib.rs
- Explanation: Architecture