mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-03 01:42:14 +00:00
![]() * refactor: move `debug_loc` * build: fix rev * build: bump tinymist inner version * build: bump tinymist world version * build: bump world crates to 0.13.12-rc1 * fix: used bad patch * fix: clippy errors |
||
---|---|---|
.. | ||
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::compile(&world)?;
// the snapshot is Send + Sync
std::thread::spawn(move || {
let doc = typst::compile(&world)?;
});