1#![forbid(unsafe_code)]
2#![doc = include_str!("../README.md")]
3
4mod application;
5mod coordinates;
6mod error;
7mod limits;
8mod model;
9mod path;
10mod provenance;
11mod validation;
12
13pub use application::{
14 AppliedText, ApplySummary, ByteEditBatch, ChangeSummary, EditChunks, OffsetBias,
15 PreparedChange, PreparedChanges, PreparedEdits, WriteSummary, apply_byte_edits,
16 apply_byte_edits_with_limits, apply_edits, apply_edits_with_encoding,
17 apply_edits_with_encoding_and_limits, apply_edits_with_limits, diagnose_byte_edits,
18 diagnose_byte_edits_with_limits, diagnose_edits, diagnose_edits_with_encoding_and_limits,
19 prepare_byte_edits, prepare_byte_edits_owned, prepare_byte_edits_owned_with_limits,
20 prepare_byte_edits_with_limits, prepare_edits, prepare_edits_with_encoding,
21 prepare_edits_with_encoding_and_limits, prepare_edits_with_limits,
22};
23pub use coordinates::LineIndex;
24pub use error::{
25 ByteSpan, DiagnosticLimits, EditError, ErrorCode, MismatchDetails, TextPreview,
26 ValidationReport,
27};
28pub use limits::{ApplyLimits, BatchLimits, LineIndexLimits, MAX_PLAN_OPERATION_BYTES, PlanLimits};
29pub use model::{
30 ByteEdit, Completeness, EDIT_PLAN_SCHEMA, EditPlan, FileEdit, Position, PositionEncoding,
31 Provenance, TextEdit, TextRange,
32};
33pub use path::{portable_path_key, validate_plan_path};
34pub use validation::{ValidatedEditPlan, validate_edit_plan};
35
36pub const VERSION: &str = env!("CARGO_PKG_VERSION");