Skip to main content

twip/
lib.rs

1//! Twip: DOCX layout, editing and rendering. [`api`] is the public contract every SDK follows: the engine and its
2//! sessions, the commands, state, events, services, errors and warnings.
3
4pub mod api;
5pub(crate) mod clock;
6pub(crate) mod docx;
7pub(crate) mod drawing;
8pub(crate) mod editing;
9#[cfg(any(test, not(target_family = "wasm")))]
10pub(crate) mod features;
11pub(crate) mod font;
12pub(crate) mod layout;
13pub mod pdf;
14pub(crate) mod prof;
15pub(crate) mod render;
16pub(crate) mod services;
17#[cfg(test)]
18mod tests;
19
20/// The engine's modules, for the crate's own tools (`crates/twip-tools` and the benchmarks in `benches/`). Not
21/// part of the API: no documentation and no compatibility promise.
22#[doc(hidden)]
23pub mod internal {
24    pub mod clock {
25        pub use crate::clock::*;
26    }
27    pub mod docx {
28        pub use crate::docx::*;
29    }
30    pub mod drawing {
31        pub use crate::drawing::*;
32    }
33    pub mod editing {
34        pub use crate::editing::*;
35    }
36    #[cfg(not(target_family = "wasm"))]
37    pub mod features {
38        pub use crate::features::*;
39    }
40    pub mod font {
41        pub use crate::font::*;
42    }
43    pub mod layout {
44        pub use crate::layout::*;
45    }
46    pub mod pdf {
47        pub use crate::pdf::export::*;
48    }
49    pub mod prof {
50        pub use crate::prof::*;
51    }
52    pub mod render {
53        pub use crate::render::*;
54    }
55    pub mod services {
56        pub use crate::services::*;
57    }
58}