Update Typst Version to Latest

This commit is contained in:
2026-07-19 12:15:52 -04:00
parent 185d7ccdcb
commit 843c0c8eb3
6 changed files with 24 additions and 23 deletions
+2 -2
View File
@@ -26,14 +26,14 @@ serde = { version = "1", features = ["derive"] }
serde_json = "1"
rusqlite = { version = "0.32", features = ["bundled"] }
typst = { version = "0.14.2", path = "../../typstdrive/typst/crates/typst" }
typst = { version = "0.15.1", path = "../../typstdrive/typst/crates/typst" }
typst-kit = { path = "../../typstdrive/typst/crates/typst-kit", features = ["system-downloader", "system-packages", "embedded-fonts"] }
typst-pdf = { path = "../../typstdrive/typst/crates/typst-pdf" }
typst-render = { path = "../../typstdrive/typst/crates/typst-render" }
typst-svg = { path = "../../typstdrive/typst/crates/typst-svg" }
typst-html = { path = "../../typstdrive/typst/crates/typst-html" }
typst-layout = { path = "../../typstdrive/typst/crates/typst-layout" }
typst-assets = { version = "0.14.2", features = ["fonts"] }
typst-assets = { version = "0.15.1", features = ["fonts"] }
chrono = { version = "0.4", features = ["serde"] }
sha2 = "0.10"
+4 -3
View File
@@ -2,8 +2,9 @@ use serde::Serialize;
use std::collections::HashMap;
use typst::diag::Warned;
use typst::layout::{Frame, FrameItem};
use typst::utils::Scalar;
use typst::WorldExt;
use typst_html::HtmlDocument;
use typst_html::{HtmlDocument, HtmlOptions};
use typst_layout::PagedDocument;
use typst_pdf::{pdf, PdfOptions};
use typst_render::{render, RenderOptions};
@@ -174,7 +175,7 @@ pub fn export_png(
warnings: _,
} => {
let options = RenderOptions {
pixel_per_pt: 2.0,
pixel_per_pt: Scalar::new(2.0),
..RenderOptions::default()
};
match document.pages().first() {
@@ -207,7 +208,7 @@ pub fn export_html(
} => return Err(collect_diagnostics(&world, &source_text, errors)),
};
typst_html::html(&document)
typst_html::html(&document, &HtmlOptions::default())
.map(|html| html.into_bytes())
.map_err(|errors| collect_diagnostics(&world, &source_text, errors))
}
+1 -1
View File
@@ -70,7 +70,7 @@ pub struct AppInfo {
fn app_info() -> AppInfo {
AppInfo {
version: env!("CARGO_PKG_VERSION").to_string(),
typst_version: "0.14.2".to_string(),
typst_version: "0.15.1".to_string(),
authors: "SirBlobby".to_string(),
license: "Apache-2.0".to_string(),
tauri_version: tauri::VERSION.to_string(),