Skip to main content

atelier_sdk_diff/
lib.rs

1//! The format-independent diff model and fidelity ladder.
2//!
3//! A [`Diff`] is a set of addressed [`Delta`]s, each carried at a
4//! [`Fidelity`] rung. The binary rung here is the floor every document
5//! diffs at; [`FormatPackage`]s project documents to text so the ladder can
6//! raise deltas to the text rung, and later to rich deltas in the format's
7//! own terms.
8
9mod binary;
10mod model;
11mod package;
12mod text;
13
14pub use binary::diff_listings;
15pub use model::{Address, Delta, DeltaKind, Diff, Fidelity, Line, LineKind};
16pub use package::{Confidence, FormatPackage, PackageError, PackageId, Projection, detect_package};
17pub use text::{NO_NEWLINE_MARKER, as_text, diff_lines};