tokmd-core
High-level API facade for tokmd.
Overview
This is a Tier 4 crate providing the recommended entry point for library usage. It coordinates scanning, aggregation, and modeling to produce code inventory receipts.
Installation
[]
= "1.4"
= "1.4"
Usage
use scan_workflow;
use GlobalArgs;
use ;
use PathBuf;
// Configure scan
let global = default;
let lang = LangArgs ;
// Run pipeline (without redaction)
let receipt = scan_workflow?;
println!;
// Run pipeline (with path redaction)
let redacted = scan_workflow?;
Main Function
Chains: Scan -> Model -> Receipt
Redaction Modes
| Mode | Behavior |
|---|---|
None |
Paths shown as-is |
Paths |
Hash file paths, preserve extension |
All |
Hash paths and excluded patterns |
Re-exports
pub use tokmd_config as config;
pub use tokmd_types as types;
When to Use
- Library consumers wanting a simple scan API
- Embedding tokmd in other Rust tools
- Programmatic access without CLI overhead
License
MIT OR Apache-2.0