Improve error handling: render errors through typst

This commit is contained in:
bluepython508
2025-10-31 16:41:53 +00:00
parent 01474ad6a0
commit 481369ea7c
5 changed files with 203 additions and 32 deletions

27
Cargo.lock generated
View File

@@ -309,6 +309,17 @@ dependencies = [
"thiserror",
]
[[package]]
name = "codespan-reporting"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af491d569909a7e4dee0ad7db7f5341fef5c614d5b8ec8cf765732aba3cff681"
dependencies = [
"serde",
"termcolor",
"unicode-width",
]
[[package]]
name = "codex"
version = "0.2.0"
@@ -2424,6 +2435,15 @@ dependencies = [
"windows-sys 0.61.2",
]
[[package]]
name = "termcolor"
version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
dependencies = [
"winapi-util",
]
[[package]]
name = "thin-vec"
version = "0.2.14"
@@ -3082,6 +3102,12 @@ version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1d386ff53b415b7fe27b50bb44679e2cc4660272694b7b6f3326d8480823a94"
[[package]]
name = "unicode-width"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
[[package]]
name = "unsafe-libyaml"
version = "0.2.11"
@@ -3533,6 +3559,7 @@ version = "0.1.0"
dependencies = [
"bindgen",
"cairo-rs",
"codespan-reporting",
"pkg-config",
"system-deps",
"typst",