rustik-diff 0.2.0

Pure diff viewer and Git diff pager for Rustik.
Documentation
//! Unified diff parsing and terminal-buffer viewing.
//!
//! The viewer is intentionally I/O-free: it parses or accepts patch data,
//! owns read-only viewer state, and writes frames into a
//! [`rustik_tui::Buffer`]. Backend access is abstracted behind the
//! [`rustik_repo::Repo`] trait so the viewer stays testable. The `rustik-diff`
//! binary owns stdin/stdout, terminals, events, and background workers.
#![deny(unsafe_code)]
#![warn(missing_docs)]
#![warn(clippy::unwrap_used)]

mod commit;
mod context;
mod document;
mod highlight;
mod viewer;
mod word;

pub mod decode;
pub mod encode;

pub use commit::{Commit, Header, ParseCommitError};
pub use context::ContextChange;
pub use decode::Decode;
pub use document::{
    DecodeError, DiffDocument, DiffLine, DiffLineKind, FileDiff, FileHeader, FileId, FileKind,
    FileMode, FileStats, Hunk, HunkHeader, HunkId, Oid, OidError, RowId, Stats,
};
pub use encode::Encode;
pub use highlight::{
    BuiltinHighlighter, DiffHighlighter, DiffSide, HighlightKey, HighlightKeyInput,
    HighlightRequest, HighlightResult, HighlightSource,
};
pub use viewer::{
    ContextRequest, ContextUpdate, DiffAction, DiffFocus, DiffOptions, DiffPalette, DiffState,
    DiffViewer, FileTreeMode, FileTreeTarget, ViewChange,
};