Skip to main content

Crate rinkaku_core

Crate rinkaku_core 

Source
Expand description

Core library for rinkaku.

This crate hosts the pure diff-condensation logic: parsing unified diffs, locating changed symbol definitions via tree-sitter, and slicing out signatures plus their 1-hop dependencies. IO (reading stdin, running git diff, invoking LSP servers) stays at the boundary in main.rs and future adapter modules, never inside this pure core.

Modules§

deps
1-hop dependency resolution (ADR 0003).
diff
Unified diff parsing.
extract
Tree-sitter based signature extraction.
file_size
File-size warnings and bands (ADR 0028, amended to add always-present per-file bands): flag source files that have grown past empirical readability thresholds, so a reviewer skimming rinkaku’s output sees oversized files at a glance rather than discovering the drift only when a multi-thousand-line file finally needs a mechanical split.
graph
Directed graph over changed symbols, for entry-point tree rendering (ADR 0008).
language
Pluggable per-language support.
non_symbol_changes
Changed-line counts for files with no changed symbol (ADR 0070).
pipeline
Wiring the diff parser, language registry, and symbol extractor into a single pure pipeline.
progress
Optional progress reporting for the pipeline’s two whole-repository file-scanning phases (ADR 0033): crate::pipeline::analyze_repo’s rayon-parallel parse and crate::deps::TagsResolver::new’s sequential indexing pass.
render
Rendering the extraction pipeline’s results into an output format.