tinymist/crates/tinymist-world
Myriad-Dreamin 451a10869a
build: bump msrv to 1.88 (#1993)
Co-authored-by: paran3xus <paran3xus007@gmail.com>
2025-08-05 23:18:16 +08:00
..
src build: bump msrv to 1.88 (#1993) 2025-08-05 23:18:16 +08:00
Cargo.toml build: bump version to 0.13.16 (#1934) 2025-07-29 15:16:18 +08:00
README.md feat: prepublish tinymist-world (#1248) 2025-02-02 14:51:49 +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::compile(&world)?;
// the snapshot is Send + Sync
std::thread::spawn(move || {
    let doc = typst::compile(&world)?;
});