Skip to main content

facet_diff/
lib.rs

1#![warn(missing_docs)]
2#![forbid(unsafe_code)]
3#![doc = include_str!("../README.md")]
4
5mod tracing_macros;
6
7mod diff;
8mod report;
9mod sequences;
10
11pub use diff::{
12    DiffFormat, DiffOptions, FacetDiff, LeafChange, LeafChangeKind, collect_leaf_changes,
13    diff_new_peek, diff_new_peek_with_options, format_diff, format_diff_compact,
14    format_diff_compact_plain, format_diff_default,
15};
16pub use report::DiffReport;
17
18// Re-export core types from facet-diff-core
19pub use facet_diff_core::{
20    ChangeKind, Diff, DiffSymbols, DiffTheme, Interspersed, Path, PathSegment, ReplaceGroup,
21    Updates, UpdatesGroup, Value,
22};
23
24// Re-export layout types for custom rendering
25pub use facet_diff_core::layout::{
26    AnsiBackend, BuildOptions, ColorBackend, DiffFlavor, JsonFlavor, PlainBackend, RenderOptions,
27    RustFlavor, XmlFlavor, build_layout, render_to_string,
28};
29
30#[cfg(test)]
31mod tests {
32    #[test]
33    fn it_works() {}
34}