Crates.io | tinymist-world |
lib.rs | tinymist-world |
version | 0.13.24 |
created_at | 2025-02-16 06:52:24.94823+00 |
updated_at | 2025-08-26 08:17:40.223558+00 |
description | Typst's World implementation for tinymist. |
homepage | https://github.com/Myriad-Dreamin/tinymist |
repository | https://github.com/Myriad-Dreamin/tinymist |
max_upload_size | |
id | 1557412 |
size | 274,103 |
Typst's World implementation for tinymist.
let args = CompileOnceArgs::parse();
let universe = args
.resolve_system()
.expect("failed to resolve system universe");
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)?;
});