tinymist/crates/tinymist-world
Myriad-Dreamin d4f00b86b0
feat: export to format regardless of export target (#1549)
* feat: export to format regardless of export target

* chore: move todo comment
2025-03-20 17:11:55 +08:00
..
src feat: export to format regardless of export target (#1549) 2025-03-20 17:11:55 +08:00
Cargo.toml perf: parallelize font loading and sync wait it (#1470) 2025-03-09 22:29:33 +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)?;
});