typst_batch/lib.rs
1//! # typst-batch
2//!
3//! Typst batch compilation library with shared resources.
4//!
5//! ## Features
6//!
7//! - Shared fonts, packages, and file cache across compilations
8//! - Fast scanning API (skip Layout phase, 5-20x faster)
9//! - JSON ↔ Typst Content bidirectional conversion
10//! - Colored diagnostics
11//!
12//! ## Modules
13//!
14//! - [`process`] - Compile and scan APIs
15//! - [`codegen`] - JSON ↔ Typst conversion
16//! - [`resource`] - Shared resources (font, package, file, library)
17//! - [`world`] - Typst World implementation
18//! - [`diagnostic`] - Error formatting
19//! - [`html`] - HTML document utilities
20
21#![forbid(unsafe_code)]
22#![warn(missing_docs)]
23
24pub mod codegen;
25pub mod diagnostic;
26pub mod html;
27pub mod prelude;
28pub mod process;
29pub mod resource;
30pub mod world;
31
32// Re-export prelude at crate root for `typst_batch::xxx` access
33pub use prelude::*;