Skip to main content

heddle_core/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2//! Embeddable Heddle facade scaffolding.
3
4pub mod context;
5pub mod contract;
6pub mod diff;
7pub mod fsck;
8pub mod query;
9pub mod status;
10pub mod thread_shaping;
11pub mod verify;
12
13pub use context::{ExecutionContext, ExecutionContextBuilder, Verbosity};
14pub use contract::{
15    HeddleReport, MachineOutputKind, OutputDiscriminator, ReportContract, schema_for_report,
16};
17pub use diff::{
18    ContextSnippet, DiffOptions, DiffReport, DiffStats, FileChange, FileContextEntry, FileEolState,
19    LineCounts, LineDiff, PlainGitDiffProbe, SemanticChangeEntry, SymlinkChange,
20    change_line_counts, compute_state_diff, compute_tree_diff, diff, diff_worktree_status,
21    plain_git_head_diff, render_diff_patch, render_diff_patch_bytes, should_render_modified_pair,
22    trim_added_decorations_for_display, write_diff_patch,
23};
24pub use fsck::{FsckError, FsckOptions, FsckReport, fsck};
25pub use objects::{
26    CollectingWarnings, HeddleError, NoopProgress, NoopWarnings, ProgressEvent, ProgressSink,
27    TaskId, Warning, WarningSink,
28};
29pub use query::{QueryHit, QueryReport, QueryRequest, query};
30pub use status::{
31    ActorInfo, ChangesInfo, CoordinationStatus, FastShortStatusProfile, FastShortStatusReport,
32    GitIndexPlan, GitOverlayHealth, GitOverlayHealthCheck, GitOverlayImportHintReport,
33    MaterializedThreadInfo, ParallelThreadInfo, StateInfo, StatusDetail, StatusOptions,
34    StatusProfile, StatusReport, StatusThreadSummary, assess_materialized_threads,
35    changes_from_worktree_status, changes_path_count, changes_paths, fast_short_status_report,
36    status,
37};
38pub use thread_shaping::{
39    CaptureSplitOptions, NoPathsMatchedDetails, ThreadMoveOptions, ThreadMoveOutput,
40    ThreadShapingError, capture_split, thread_move,
41};
42pub use verify::{
43    ActionTemplate, MachineContractCoverage, PlainGitVerifyProbe, RepositoryContextInfo,
44    RepositoryPresentation, RepositoryVerificationState, VerificationCheck, VerifyOptions,
45    VerifyProfile, VerifyReport, dirty_path_count, repository_mode_label, repository_presentation,
46    verify,
47};