tinymist/crates/tinymist-world
Myriad-Dreamin 2a0a5ab3ae
feat: hot reload compiler respecting typst font, package and library options (#2252)
they were not adding to the `Config::primary_opts` which is used to
detect whther to restart (reconstruct) a compiler.
2025-11-18 01:40:22 +08:00
..
src feat: hot reload compiler respecting typst font, package and library options (#2252) 2025-11-18 01:40:22 +08:00
Cargo.toml feat: minimal viable support for syntax-only mode (#2247) 2025-11-16 08:30:20 +08:00
README.md feat: minimal viable support for syntax-only mode (#2247) 2025-11-16 08:30:20 +08:00

tinymist-world

Typst's World implementation for tinymist.

Example: Resolves a system universe from system arguments

let args = CompileOnceArgs::parse();
let universe = args
    .resolve_system()
    .expect("failed to resolve system universe");

Example: Runs a typst compilation

let world = verse.snapshot();
// in current thread
let doc = typst_shim::compile_opt(&world)?;
// the snapshot is Send + Sync
std::thread::spawn(move || {
    let doc = typst_shim::compile_opt(&world)?;
});