diff options
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})"))?; |
