| 1 | #![forbid(unsafe_code)] |
| 2 | #![doc = include_str!("../README.md")] |
| 3 | |
| 4 | mod active; |
| 5 | mod bytes; |
| 6 | mod commit; |
| 7 | mod create; |
| 8 | pub mod document; |
| 9 | mod edit; |
| 10 | mod files; |
| 11 | #[cfg(any(unix, windows))] |
| 12 | mod flush; |
| 13 | mod formatting; |
| 14 | mod identity; |
| 15 | mod insertion; |
| 16 | mod objects; |
| 17 | pub mod op; |
| 18 | mod outline; |
| 19 | pub mod page; |
| 20 | mod pages; |
| 21 | mod paragraph; |
| 22 | mod properties; |
| 23 | pub mod protected; |
| 24 | mod revisions; |
| 25 | mod section; |
| 26 | mod snapshot; |
| 27 | mod store; |
| 28 | #[cfg(test)] |
| 29 | #[path = "../tests/support/sweep.rs"] |
| 30 | mod sweep; |
| 31 | mod toc; |
| 32 | mod tree; |
| 33 | mod write; |
| 34 | |
| 35 | pub use commit::{CommitError, CommitIo, CommitState, Stamp, Transaction, confirm, place}; |
| 36 | #[cfg(any(unix, windows))] |
| 37 | pub use commit::{confirm_file, place_file, read_file, read_file_limited, supersede_file}; |
| 38 | pub use create::{create_empty_section, create_section, create_table_of_contents}; |
| 39 | pub use files::FileDataReference; |
| 40 | pub use formatting::{FONT_SIZES, TextAttribute}; |
| 41 | pub use identity::{place_image, reidentify}; |
| 42 | pub(crate) use insertion::Insertion; |
| 43 | pub use objects::{Object, ObjectData, ObjectReferences, ResolvedRevision}; |
| 44 | pub use outline::OutlineEdit; |
| 45 | pub use pages::{ConflictPage, PageCreation, PageEdit, PagePosition}; |
| 46 | pub(crate) use paragraph::{ParagraphJoin, ParagraphSplit}; |
| 47 | pub use properties::{IdStream, Property, PropertySets, Value}; |
| 48 | pub use revisions::{ExGuid, ObjectSpace, Revision, RevisionIndex}; |
| 49 | pub use section::{Arena, PageVersion, Section}; |
| 50 | pub use snapshot::{read_snapshot, read_storage_snapshot}; |
| 51 | pub use store::{Chunk, Error, FileType, Header, Node, NodeList, Reference, Store}; |
| 52 | pub use toc::{TocEdit, edit_table_of_contents}; |
| 53 | pub(crate) use tree::TreeEdit; |