Skip to main content

diffkit/
lib.rs

1#![feature(rustc_private)]
2
3extern crate rustc_driver;
4extern crate rustc_interface;
5extern crate rustc_middle;
6extern crate rustc_public;
7
8pub mod diff;
9pub mod engine;
10pub mod git;
11pub mod graph;
12pub mod language;
13pub mod model;
14pub mod render;
15mod source;
16
17pub type DiffkitResult<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;
18
19pub use engine::{
20    DiffOptions, DiffReport, EntryTree, TreeReport, ocamldiff_paths, ocamldiff_project_files,
21    ocamldiff_sources, ocamltree_path, ocamltree_project_file, rustdiff_paths,
22    rustdiff_project_files, rustdiff_project_paths, rustdiff_project_paths_cached,
23    rustdiff_sources, rusttree_path, rusttree_project_file,
24};
25pub use render::{
26    ColorMode, RenderOptions, render_call_tree_with_options, render_report,
27    render_report_with_options, render_tree_report_with_options,
28};