diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-11-08 13:11:11 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-11-08 13:16:13 +0100 |
| commit | ec04c3de2fcc5b31d94dc2be8561e569f28cc0a1 (patch) | |
| tree | 3b143ac30f82655824f6af0d73935eebc89d74ae /crates/typst-cli | |
| parent | c12a19a0758774a3285ee3d129803a786cd58a87 (diff) | |
Extract `typst-render` crate
Diffstat (limited to 'crates/typst-cli')
| -rw-r--r-- | crates/typst-cli/Cargo.toml | 1 | ||||
| -rw-r--r-- | crates/typst-cli/src/compile.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/crates/typst-cli/Cargo.toml b/crates/typst-cli/Cargo.toml index 6155c046..9a96c6b2 100644 --- a/crates/typst-cli/Cargo.toml +++ b/crates/typst-cli/Cargo.toml @@ -22,6 +22,7 @@ doc = false [dependencies] typst = { workspace = true } typst-library = { workspace = true } +typst-render = { workspace = true } chrono = { workspace = true } clap = { workspace = true } codespan-reporting = { workspace = true } diff --git a/crates/typst-cli/src/compile.rs b/crates/typst-cli/src/compile.rs index b5cf0e54..80e19f1b 100644 --- a/crates/typst-cli/src/compile.rs +++ b/crates/typst-cli/src/compile.rs @@ -220,7 +220,7 @@ fn export_image( match fmt { ImageExportFormat::Png => { let pixmap = - typst::export::render(frame, command.ppi / 72.0, Color::WHITE); + typst_render::render(frame, command.ppi / 72.0, Color::WHITE); pixmap .save_png(path) .map_err(|err| eco_format!("failed to write PNG file ({err})"))?; |
