ferroui_designer_core/lib.rs
1//! Portable, source-preserving XAML editing for FerroUI designers.
2//!
3//! [`Document`] is the transaction boundary shared by source editors, visual tools,
4//! collaboration adapters and automation. It retains authored text when it is
5//! temporarily invalid; [`Document::ast`] and [`Document::valid_source`] remain the
6//! last validated snapshot. Visual edits refuse to overwrite an invalid buffer.
7//!
8//! The syntax model preserves comments, CDATA, namespace declarations, attribute
9//! quotes and all unrelated bytes. Node identifiers survive edits and history;
10//! named elements are reconciled when source is replaced. No rendering platform,
11//! dispatcher or runtime loader is required.
12mod ast;
13mod document;
14mod markup;
15
16pub use ast::{Ast, Attribute, Node, NodeId, NodeKind, SourceSpan};
17pub use document::{
18 ChangeSet, DesignerError, Diagnostic, Document, Edit, SourceUpdate, TextPatch, Transaction,
19};
20pub use markup::{MarkupArgument, MarkupExtension, MarkupValue};
21
22#[cfg(test)]
23mod preview_snapshot_tests;
24#[cfg(test)]
25mod tests;