diff --git a/Cargo.lock b/Cargo.lock index ac23636..f597434 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -320,6 +320,12 @@ dependencies = [ "thiserror 2.0.16", ] +[[package]] +name = "codex" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "724d27a0ee38b700e5e164350e79aba601a0db673ac47fce1cb74c3e38864036" + [[package]] name = "color_quant" version = "1.1.0" @@ -686,6 +692,12 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + [[package]] name = "fontconfig-parser" version = "0.5.8" @@ -811,6 +823,9 @@ name = "hashbrown" version = "0.15.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash", +] [[package]] name = "hayagriva" @@ -1250,6 +1265,15 @@ dependencies = [ "mutate_once", ] +[[package]] +name = "kamadak-exif" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1130d80c7374efad55a117d715a3af9368f0fa7a2c54573afc15a188cd984837" +dependencies = [ + "mutate_once", +] + [[package]] name = "kurbo" version = "0.11.3" @@ -2392,6 +2416,16 @@ dependencies = [ "serde", ] +[[package]] +name = "string-interner" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a3275464d7a9f2d4cac57c89c2ef96a8524dba2864c8d6f82e3980baf136f9b" +dependencies = [ + "hashbrown 0.15.5", + "serde", +] + [[package]] name = "strsim" version = "0.11.1" @@ -2844,7 +2878,7 @@ dependencies = [ "if_chain", "image", "indexmap 2.11.0", - "kamadak-exif", + "kamadak-exif 0.5.5", "kurbo", "lipsum", "log", @@ -2871,18 +2905,18 @@ dependencies = [ "ttf-parser", "two-face", "typed-arena", - "typst-assets", - "typst-macros", - "typst-syntax", - "typst-timing", - "typst-utils", + "typst-assets 0.12.0", + "typst-macros 0.12.0", + "typst-syntax 0.12.0", + "typst-timing 0.12.0", + "typst-utils 0.12.0", "unicode-bidi", "unicode-math-class", "unicode-script", "unicode-segmentation", "unscanny", "usvg", - "wasmi", + "wasmi 0.35.0", "xmlwriter", ] @@ -2892,6 +2926,12 @@ version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fe00da1b24da2c4a7da532fc33d0c3bd43a902ca4c408ee2c36eabe70f2f4ba" +[[package]] +name = "typst-assets" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5bf0cc3c2265502b51fcb73147cc7c951ceb694507195b93c2ab0b901abb902" + [[package]] name = "typst-kit" version = "0.12.0" @@ -2908,12 +2948,73 @@ dependencies = [ "openssl", "tar", "typst", - "typst-assets", - "typst-timing", - "typst-utils", + "typst-assets 0.12.0", + "typst-timing 0.12.0", + "typst-utils 0.12.0", "ureq", ] +[[package]] +name = "typst-library" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "722b0d6dfd05aa5bb7da7f282586f624f452e3f285cd3a10ac0d7e99f3bc3048" +dependencies = [ + "az", + "bitflags 2.9.3", + "bumpalo", + "chinese-number", + "ciborium", + "codex", + "comemo", + "csv", + "ecow", + "flate2", + "fontdb", + "hayagriva", + "icu_properties 1.5.1", + "icu_provider 1.5.0", + "icu_provider_blob", + "image", + "indexmap 2.11.0", + "kamadak-exif 0.6.1", + "kurbo", + "lipsum", + "memchr", + "palette", + "phf 0.11.3", + "png", + "qcms", + "rayon", + "regex", + "regex-syntax", + "roxmltree", + "rust_decimal", + "rustybuzz", + "serde", + "serde_json", + "serde_yaml", + "siphasher 1.0.1", + "smallvec", + "syntect", + "time", + "toml", + "ttf-parser", + "two-face", + "typed-arena", + "typst-assets 0.13.1", + "typst-macros 0.13.1", + "typst-syntax 0.13.1", + "typst-timing 0.13.1", + "typst-utils 0.13.1", + "unicode-math-class", + "unicode-segmentation", + "unscanny", + "usvg", + "wasmi 0.40.0", + "xmlwriter", +] + [[package]] name = "typst-macros" version = "0.12.0" @@ -2926,11 +3027,23 @@ dependencies = [ "syn 2.0.106", ] +[[package]] +name = "typst-macros" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5a7667bf2ff3111e25744e72abfdbbed5fed9a37476043448e935697e55a6fb" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.106", +] + [[package]] name = "typst-pdf" -version = "0.12.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8734aa2909d388486f58aba306711c6b916712bf09e11db05ca21ff5d712766" +checksum = "a78718a94c28b5ed5e9ee9826fa995004a81abbcc1c9d0e88a7e87656cbec5a4" dependencies = [ "arrayvec", "base64", @@ -2940,17 +3053,17 @@ dependencies = [ "image", "indexmap 2.11.0", "miniz_oxide", - "once_cell", "pdf-writer", "serde", "subsetter", "svg2pdf", "ttf-parser", - "typst", - "typst-assets", - "typst-macros", - "typst-timing", - "unscanny", + "typst-assets 0.13.1", + "typst-library", + "typst-macros 0.13.1", + "typst-syntax 0.13.1", + "typst-timing 0.13.1", + "typst-utils 0.13.1", "xmp-writer", ] @@ -2966,8 +3079,8 @@ dependencies = [ "flate2", "ttf-parser", "typst", - "typst-macros", - "typst-timing", + "typst-macros 0.12.0", + "typst-timing 0.12.0", "xmlparser", "xmlwriter", ] @@ -2982,7 +3095,25 @@ dependencies = [ "once_cell", "serde", "toml", - "typst-utils", + "typst-utils 0.12.0", + "unicode-ident", + "unicode-math-class", + "unicode-script", + "unicode-segmentation", + "unscanny", +] + +[[package]] +name = "typst-syntax" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ba949ac75a374ea6b2f61d32e6c63acb818e6179d16f78b2cba988fbb5e23a8" +dependencies = [ + "ecow", + "serde", + "toml", + "typst-timing 0.13.1", + "typst-utils 0.13.1", "unicode-ident", "unicode-math-class", "unicode-script", @@ -2999,7 +3130,18 @@ dependencies = [ "parking_lot", "serde", "serde_json", - "typst-syntax", + "typst-syntax 0.12.0", +] + +[[package]] +name = "typst-timing" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ba4541664e98be2023db2267d92af206190eb903063a0229c668e1ab9dca976" +dependencies = [ + "parking_lot", + "serde", + "serde_json", ] [[package]] @@ -3015,6 +3157,20 @@ dependencies = [ "thin-vec", ] +[[package]] +name = "typst-utils" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eb71d59967e0fb32341f8a94f41ced8da520c63705cca2686ae653c9408fd96" +dependencies = [ + "once_cell", + "portable-atomic", + "rayon", + "siphasher 1.0.1", + "thin-vec", + "unicode-math-class", +] + [[package]] name = "unic-langid" version = "0.9.6" @@ -3301,11 +3457,27 @@ dependencies = [ "num-traits", "smallvec", "spin", - "wasmi_collections", - "wasmi_core", + "wasmi_collections 0.35.0", + "wasmi_core 0.35.0", "wasmparser-nostd", ] +[[package]] +name = "wasmi" +version = "0.40.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a19af97fcb96045dd1d6b4d23e2b4abdbbe81723dbc5c9f016eb52145b320063" +dependencies = [ + "arrayvec", + "multi-stash", + "smallvec", + "spin", + "wasmi_collections 0.40.0", + "wasmi_core 0.40.0", + "wasmi_ir", + "wasmparser", +] + [[package]] name = "wasmi_collections" version = "0.35.0" @@ -3314,7 +3486,16 @@ checksum = "8ff59e30e550a509cc689ec638e5042be4d78ec9f6dd8a71fd02ee28776a74fd" dependencies = [ "ahash", "hashbrown 0.14.5", - "string-interner", + "string-interner 0.17.0", +] + +[[package]] +name = "wasmi_collections" +version = "0.40.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e80d6b275b1c922021939d561574bf376613493ae2b61c6963b15db0e8813562" +dependencies = [ + "string-interner 0.18.0", ] [[package]] @@ -3329,6 +3510,35 @@ dependencies = [ "paste", ] +[[package]] +name = "wasmi_core" +version = "0.40.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a8c51482cc32d31c2c7ff211cd2bedd73c5bd057ba16a2ed0110e7a96097c33" +dependencies = [ + "downcast-rs", + "libm", +] + +[[package]] +name = "wasmi_ir" +version = "0.40.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e431a14c186db59212a88516788bd68ed51f87aa1e08d1df742522867b5289a" +dependencies = [ + "wasmi_core 0.40.0", +] + +[[package]] +name = "wasmparser" +version = "0.221.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d06bfa36ab3ac2be0dee563380147a5b81ba10dd8885d7fbbc9eb574be67d185" +dependencies = [ + "bitflags 2.9.3", + "indexmap 2.11.0", +] + [[package]] name = "wasmparser-nostd" version = "0.100.2" diff --git a/Cargo.toml b/Cargo.toml index 789790a..e695d2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ tokio = { version = "1.47.1", features = ["fs", "io-util"], optional = true } toml_edit = { version = "0.22.27", features = ["serde"] } typst = "0.12.0" typst-kit = { version = "0.12.0", features = ["embed-fonts"] } -typst-pdf = "0.12.0" +typst-pdf = "0.13.1" typst-svg = "0.12.0" ecow = "0.2.6" syntect = { version = "5.2.0", default-features = false, features = [