mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-20 03:49:45 +00:00
they were not adding to the `Config::primary_opts` which is used to detect whther to restart (reconstruct) a compiler. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||
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)?;
});