tinymist/crates/tinymist-world
Myriad-Dreamin a6adbaa926
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / announce (push) Blocked by required conditions
tinymist::ci / build (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
feat: add no_pdf_tags, ppi, and more pdf_standard to extra args (#2220)
- `--no-pdf-tags` to disable tagged PDF
- `--ppi` to specify the PPI (pixels per inch) for PNG export
- `--pdf-standard`: add all rest commonly used PDF standards, which was
introduced in `typst` v0.14.0
2025-11-04 18:23:07 +08:00
..
src feat: add no_pdf_tags, ppi, and more pdf_standard to extra args (#2220) 2025-11-04 18:23:07 +08:00
Cargo.toml build: bump version to 0.14.0 (#2215) 2025-11-02 16:15:26 +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)?;
});