7 Commits
Author SHA1 Message Date
SirBlob f498fcba1c Install xdg-utils for AppImage bundling 2026-07-20 16:12:40 -04:00
SirBlob 47f0cbcf93 Fix AppImage glibc mismatch and pin working Typst commit 2026-07-20 15:26:11 -04:00
SirBlob 843c0c8eb3 Update Typst Version to Latest 2026-07-19 12:15:52 -04:00
SirBlobandGitHub 185d7ccdcb Add images to README 2026-07-19 11:17:44 -04:00
SirBlobandGitHub 00f5797256 Update README 2026-07-19 10:45:49 -04:00
SirBlob e5dfc8e472 release note rm 2026-07-19 00:39:07 -04:00
SirBlob 44fbb97ac9 Add release notes 2026-07-19 00:30:50 -04:00
9 changed files with 199 additions and 348 deletions
+4 -3
View File
@@ -7,13 +7,13 @@ on:
workflow_dispatch:
env:
TYPST_COMMIT: 44b3f78ed37fedea75e911dde2269ef86c45316f
TYPST_COMMIT: 9dfd3a08500b7896045f907433cf7b4b02434fad
APPIMAGE_EXTRACT_AND_RUN: 1
NO_STRIP: 1
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
@@ -41,7 +41,8 @@ jobs:
file \
curl \
wget \
jq
jq \
xdg-utils
- name: Set up Bun
uses: oven-sh/setup-bun@v2
+1 -1
View File
@@ -8,7 +8,7 @@ on:
workflow_dispatch:
env:
TYPST_COMMIT: 44b3f78ed37fedea75e911dde2269ef86c45316f
TYPST_COMMIT: 9dfd3a08500b7896045f907433cf7b4b02434fad
jobs:
frontend:
+7 -35
View File
@@ -2,7 +2,7 @@
[![Version](https://img.shields.io/badge/version-1.0.0-blue.svg)](https://github.com/sirblobby/typst-desktop)
[![License](https://img.shields.io/badge/license-Apache_2.0-green.svg)](LICENSE)
[![Typst Version](https://img.shields.io/badge/Typst-0.14.2-239dad?logo=typst&logoColor=white)](https://typst.app/)
[![Typst Version](https://img.shields.io/badge/Typst-0.15.1-239dad?logo=typst&logoColor=white)](https://typst.app/)
[![Rust](https://img.shields.io/badge/Rust-1.82+-orange?logo=rust&logoColor=white)](https://www.rust-lang.org/)
[![Tauri](https://img.shields.io/badge/Tauri-2-24C8DB?logo=tauri&logoColor=white)](https://tauri.app/)
[![SvelteKit](https://img.shields.io/badge/SvelteKit-5-ff3e00?logo=svelte)](https://kit.svelte.dev/)
@@ -190,36 +190,6 @@ bun run tauri build
On Linux, use `bun run build:linux` instead. It is the same command with `NO_STRIP=1` set, which the AppImage bundler needs on a rolling-release distribution. See [Platform notes](#platform-notes).
## Distribution
Workflows live in `.gitea/workflows` and run on Gitea Actions.
| Workflow | Trigger | Output |
|---|---|---|
| `ci.yml` | push, pull requests | Type check, frontend build, backend check. |
| `build.yml` | `v*` tags, manual | Linux packages as workflow artifacts, and on a tag, a draft GitHub release. |
| Platform | Artifacts |
|---|---|
| Linux | `.deb`, `.rpm`, `.AppImage` |
Builds run on a Linux runner, so Linux packages are the only artifacts produced. Windows and macOS installers have to be built on their own platforms and attached to the release by hand.
Publishing to GitHub needs one repository secret:
| Secret | Value |
|---|---|
| `RELEASE_TOKEN` | A classic GitHub personal access token with the `repo` scope. |
To cut a release:
```bash
git tag v1.0.0
git push origin v1.0.0
```
The release is drafted rather than published, so you can add other platforms and review the artifacts before making it public.
### Platform notes
`.msi` packages can only be built on Windows, because the WiX Toolset is Windows-only. Building on the target platform is the supported path for both Windows and macOS.
@@ -243,14 +213,16 @@ Linux builds also need the WebKit and GTK development packages:
sudo apt-get install libwebkit2gtk-4.1-dev libgtk-3-dev librsvg2-dev patchelf
```
On rolling-release distributions such as Arch, the AppImage step fails with `failed to run linuxdeploy`. The `strip` bundled inside `linuxdeploy` predates the `.relr.dyn` relocation section that a current toolchain emits, so it rejects every system library it is asked to strip. Setting `NO_STRIP=1` skips that pass, which is what `build:linux` does:
```bash
bun run build:linux
```
The `.deb` and `.rpm` targets are unaffected, so a build that produces those two and then fails is almost always this.
## License
Apache License 2.0. See [LICENSE](LICENSE).
<img width="1908" height="1038" alt="image" src="https://github.com/user-attachments/assets/86f84d9f-7b76-453b-aefa-c15531e49600" />
<img width="1908" height="1038" alt="image" src="https://github.com/user-attachments/assets/272a0178-7b5c-48a2-8af1-691ca3f100ef" />
<img width="1908" height="1038" alt="image" src="https://github.com/user-attachments/assets/5f3f982e-29d0-4b3b-b7eb-fa6e888fe01a" />
+2 -2
View File
@@ -190,7 +190,7 @@
"@sveltejs/adapter-static": ["@sveltejs/[email protected]", "", { "peerDependencies": { "@sveltejs/kit": "^2.0.0" } }, "sha512-7D9lYFWJmB7zxZyTE/qxjksvMqzMuYrrsyh1f4AlZqeZeACPRySjbC3aFiY55wb1tWUaKOQG9PVbm74JcN2Iew=="],
"@sveltejs/kit": ["@sveltejs/[email protected].0", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "@sveltejs/acorn-typescript": "^1.0.9", "@types/cookie": "^0.6.0", "acorn": "^8.16.0", "cookie": "^0.6.0", "devalue": "^5.8.1", "esm-env": "^1.2.2", "kleur": "^4.1.5", "magic-string": "^0.30.5", "mrmime": "^2.0.0", "set-cookie-parser": "^3.0.0", "sirv": "^3.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0", "@sveltejs/vite-plugin-svelte": "^3.0.0 || ^4.0.0-next.1 || ^5.0.0 || ^6.0.0-next.0 || ^7.0.0", "svelte": "^4.0.0 || ^5.0.0-next.0", "typescript": "^5.3.3 || ^6.0.0", "vite": "^5.0.3 || ^6.0.0 || ^7.0.0-beta.0 || ^8.0.0" }, "optionalPeers": ["@opentelemetry/api", "typescript"], "bin": { "svelte-kit": "svelte-kit.js" } }, "sha512-5pBnJwdNzxbrxp1TLK1NPMFF0Cx57iZUDKInznKcfifYR9m9poWfZI2Tfhw6BZIjYor5dXvcibt4EQgar3k6ww=="],
"@sveltejs/kit": ["@sveltejs/[email protected].1", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "@sveltejs/acorn-typescript": "^1.0.9", "@types/cookie": "^0.6.0", "acorn": "^8.16.0", "cookie": "^0.6.0", "devalue": "^5.8.1", "esm-env": "^1.2.2", "kleur": "^4.1.5", "magic-string": "^0.30.5", "mrmime": "^2.0.0", "set-cookie-parser": "^3.0.0", "sirv": "^3.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0", "@sveltejs/vite-plugin-svelte": "^3.0.0 || ^4.0.0-next.1 || ^5.0.0 || ^6.0.0-next.0 || ^7.0.0", "svelte": "^4.0.0 || ^5.0.0-next.0", "typescript": "^5.3.3 || ^6.0.0", "vite": "^5.0.3 || ^6.0.0 || ^7.0.0-beta.0 || ^8.0.0" }, "optionalPeers": ["@opentelemetry/api", "typescript"], "bin": { "svelte-kit": "svelte-kit.js" } }, "sha512-nY9SPHGOZro3doud9vZXDBwl9tCZIouuJztjgSHs6PAIrv9M/z5O7eOhPV5xU7CgVHA976Jwu3BA1hIFvXztkA=="],
"@sveltejs/load-config": ["@sveltejs/[email protected]", "", {}, "sha512-1LgZ/qUqSoq+QorD83lk2hka79Px0wXNW2q5V1nZlxGhQgw1jrsIbVz5YiCeucVLo4XvFLjXukUaQjIiqowkcg=="],
@@ -286,7 +286,7 @@
"@tauri-apps/cli-win32-x64-msvc": ["@tauri-apps/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-+vDiqBIU5dMISg/wNvX3sF+ZHfgJGJ5T0AcO+EHNXV9GGAG+P5fzodlDXD3QdKCRgZxMoCm5PPvj3BqLNjBthw=="],
"@tauri-apps/plugin-dialog": ["@tauri-apps/[email protected].1", "", { "dependencies": { "@tauri-apps/api": "^2.11.0" } }, "sha512-OK1UBXYt+ojcmxMktzzuyonYIFta8CmAASpX+CA+DTGK24KlHjhYI6x2iOJ/TjZF4N7/ACK1oFmEOjIY9IhzOQ=="],
"@tauri-apps/plugin-dialog": ["@tauri-apps/[email protected].2", "", { "dependencies": { "@tauri-apps/api": "^2.11.0" } }, "sha512-pX0IGm1I3I6wc+zeKYcq1GSqogK6okCNX5fOdaNU5ab1AjGS6l1E5wFNjEb7meg7ZFSp0JUs+0jQGQNyOvLrsg=="],
"@tauri-apps/plugin-opener": ["@tauri-apps/[email protected]", "", { "dependencies": { "@tauri-apps/api": "^2.11.0" } }, "sha512-1HnPkb+AmgO29HBazm4uPLKB+r7zzcTBW1d0fyYp1uP+jwtpoiNDGKMMzz58SFp49nOIrxdE3aUJtT57lfO9CQ=="],
+14 -14
View File
@@ -14,27 +14,27 @@
},
"license": "Apache-2.0",
"dependencies": {
"@codemirror/autocomplete": "^6.20.2",
"@codemirror/commands": "^6.10.3",
"@codemirror/language": "^6.10.8",
"@codemirror/legacy-modes": "^6.5.1",
"@codemirror/lint": "^6.9.6",
"@codemirror/lsp-client": "^6.2.4",
"@codemirror/state": "^6.6.0",
"@codemirror/view": "^6.43.0",
"@iconify/svelte": "^5.2.1",
"@lezer/highlight": "^1.2.1",
"@codemirror/autocomplete": "^6.20.3",
"@codemirror/commands": "^6.10.4",
"@codemirror/language": "^6.12.4",
"@codemirror/legacy-modes": "^6.5.3",
"@codemirror/lint": "^6.9.7",
"@codemirror/lsp-client": "^6.2.5",
"@codemirror/state": "^6.7.1",
"@codemirror/view": "^6.43.6",
"@iconify/svelte": "^5.2.2",
"@lezer/highlight": "^1.2.3",
"@tauri-apps/api": "^2.11.1",
"@tauri-apps/plugin-dialog": "^2.4.1",
"@tauri-apps/plugin-dialog": "^2.7.2",
"@tauri-apps/plugin-opener": "^2.5.4",
"codemirror": "^6.0.2",
"codemirror-lang-typst": "^0.4.0"
},
"devDependencies": {
"@sveltejs/adapter-static": "^3.0.10",
"@tailwindcss/vite": "^4.3.0",
"tailwindcss": "^4.3.0",
"@sveltejs/kit": "^2.70.0",
"@tailwindcss/vite": "^4.3.3",
"tailwindcss": "^4.3.3",
"@sveltejs/kit": "^2.70.1",
"@sveltejs/vite-plugin-svelte": "^5.1.1",
"svelte": "^5.56.6",
"svelte-check": "^4.7.3",
+164 -287
View File
@@ -275,9 +275,9 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
[[package]]
name = "biblatex"
version = "0.11.0"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53d0c374feba1b9a59042a7c1cf00ce7c34b977b9134fe7c42b08e5183729f66"
checksum = "591eba69b7c085632e22ca03606f0bbea68d53bbe26c8962e2d549af20c6a561"
dependencies = [
"paste",
"roman-numerals-rs",
@@ -611,11 +611,13 @@ dependencies = [
[[package]]
name = "citationberg"
version = "0.6.1"
source = "git+https://github.com/typst/citationberg?rev=0999ab7#0999ab79842d79c7aae665cf1c6eece5a4b9ef2e"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "756ff1e3d43a9ecc8183932fb4d9fd3971236f3ce4acb62fe51d1cd43297547d"
dependencies = [
"quick-xml 0.38.4",
"serde",
"serde_path_to_error",
]
[[package]]
@@ -629,8 +631,9 @@ dependencies = [
[[package]]
name = "codex"
version = "0.2.0"
source = "git+https://github.com/typst/codex?rev=0426b6a#0426b6a97414064ad31d0b97d822566fe9df8b65"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0732ab1a27b4ea05e6f9f60a5122c9924dd5123defde0d8e907f58cf643d40e6"
dependencies = [
"chinese-number",
]
@@ -1148,18 +1151,6 @@ version = "1.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"
[[package]]
name = "embedded-io"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef1a6892d9eef45c8fa6b9e0086428a2cca8491aca8f787c534a3d6d0bcb3ced"
[[package]]
name = "embedded-io"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edd0f118536f44f5ccd48bcb8b111bdc3de888b58c74639dfb034a357d0f206d"
[[package]]
name = "endi"
version = "1.1.1"
@@ -1928,12 +1919,15 @@ dependencies = [
[[package]]
name = "hayagriva"
version = "0.9.1"
source = "git+https://github.com/typst/hayagriva?rev=292b880#292b88010d75e5fea8c8ff41fad250b2cd4d9a9a"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b6c185c5c72546d50b25b70187f01ab9a1a2fa21c4db8691e2426fa5fce805c"
dependencies = [
"biblatex",
"ciborium",
"citationberg",
"icu_collator",
"icu_locale",
"indexmap 2.14.0",
"paste",
"roman-numerals-rs",
@@ -1991,7 +1985,7 @@ dependencies = [
"siphasher",
"skrifa",
"smallvec",
"yoke 0.8.3",
"yoke",
]
[[package]]
@@ -2217,18 +2211,30 @@ dependencies = [
]
[[package]]
name = "icu_collections"
version = "1.5.0"
name = "icu_collator"
version = "2.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526"
checksum = "8bbdf98e5e0aa827770acee171ebb568aaab975a36b56afdb5fd0e2f525750bb"
dependencies = [
"displaydoc",
"serde",
"yoke 0.7.5",
"zerofrom",
"zerovec 0.10.4",
"icu_collator_data",
"icu_collections",
"icu_locale",
"icu_locale_core",
"icu_normalizer",
"icu_properties",
"icu_provider",
"smallvec",
"utf16_iter",
"utf8_iter",
"zerovec",
]
[[package]]
name = "icu_collator_data"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "038ed8e5817f2059c2f3efb0945ba78d060d3d25e8f1a1bea5139f821a21a2f0"
[[package]]
name = "icu_collections"
version = "2.2.0"
@@ -2237,10 +2243,26 @@ checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"
dependencies = [
"displaydoc",
"potential_utf",
"serde",
"utf8_iter",
"yoke 0.8.3",
"yoke",
"zerofrom",
"zerovec 0.11.6",
"zerovec",
]
[[package]]
name = "icu_locale"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5a396343c7208121dc86e35623d3dfe19814a7613cfd14964994cdc9c9a2e26"
dependencies = [
"icu_collections",
"icu_locale_core",
"icu_locale_data",
"icu_provider",
"potential_utf",
"tinystr",
"zerovec",
]
[[package]]
@@ -2250,44 +2272,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"
dependencies = [
"displaydoc",
"litemap 0.8.2",
"tinystr 0.8.3",
"writeable 0.6.3",
"zerovec 0.11.6",
"litemap",
"serde",
"tinystr",
"writeable",
"zerovec",
]
[[package]]
name = "icu_locid"
version = "1.5.0"
name = "icu_locale_data"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637"
dependencies = [
"displaydoc",
"litemap 0.7.5",
"tinystr 0.7.6",
"writeable 0.5.5",
"zerovec 0.10.4",
]
[[package]]
name = "icu_locid_transform"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e"
dependencies = [
"displaydoc",
"icu_locid",
"icu_locid_transform_data",
"icu_provider 1.5.0",
"tinystr 0.7.6",
"zerovec 0.10.4",
]
[[package]]
name = "icu_locid_transform_data"
version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7515e6d781098bf9f7205ab3fc7e9709d34554ae0b21ddbcb5febfa4bc7df11d"
checksum = "d5fdcc9ac77c6d74ff5cf6e65ef3181d6af32003b16fce3a77fb451d2f695993"
[[package]]
name = "icu_normalizer"
@@ -2295,12 +2291,15 @@ version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4"
dependencies = [
"icu_collections 2.2.0",
"icu_collections",
"icu_normalizer_data",
"icu_properties 2.2.0",
"icu_provider 2.2.0",
"icu_properties",
"icu_provider",
"smallvec",
"zerovec 0.11.6",
"utf16_iter",
"utf8_iter",
"write16",
"zerovec",
]
[[package]]
@@ -2309,67 +2308,27 @@ version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38"
[[package]]
name = "icu_properties"
version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5"
dependencies = [
"displaydoc",
"icu_collections 1.5.0",
"icu_locid_transform",
"icu_properties_data 1.5.1",
"icu_provider 1.5.0",
"serde",
"tinystr 0.7.6",
"zerovec 0.10.4",
]
[[package]]
name = "icu_properties"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de"
dependencies = [
"icu_collections 2.2.0",
"icu_collections",
"icu_locale_core",
"icu_properties_data 2.2.0",
"icu_provider 2.2.0",
"zerotrie 0.2.4",
"zerovec 0.11.6",
"icu_properties_data",
"icu_provider",
"serde",
"zerotrie",
"zerovec",
]
[[package]]
name = "icu_properties_data"
version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "85fb8799753b75aee8d2a21d7c14d9f38921b54b3dbda10f5a3c7a7b82dba5e2"
[[package]]
name = "icu_properties_data"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14"
[[package]]
name = "icu_provider"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9"
dependencies = [
"displaydoc",
"icu_locid",
"icu_provider_macros",
"postcard",
"serde",
"stable_deref_trait",
"tinystr 0.7.6",
"writeable 0.5.5",
"yoke 0.7.5",
"zerofrom",
"zerovec 0.10.4",
]
[[package]]
name = "icu_provider"
version = "2.2.0"
@@ -2378,73 +2337,52 @@ checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"
dependencies = [
"displaydoc",
"icu_locale_core",
"writeable 0.6.3",
"yoke 0.8.3",
"postcard",
"serde",
"stable_deref_trait",
"writeable",
"yoke",
"zerofrom",
"zerotrie 0.2.4",
"zerovec 0.11.6",
]
[[package]]
name = "icu_provider_adapters"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d6324dfd08348a8e0374a447ebd334044d766b1839bb8d5ccf2482a99a77c0bc"
dependencies = [
"icu_locid",
"icu_locid_transform",
"icu_provider 1.5.0",
"tinystr 0.7.6",
"zerovec 0.10.4",
"zerotrie",
"zerovec",
]
[[package]]
name = "icu_provider_blob"
version = "1.5.0"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c24b98d1365f55d78186c205817631a4acf08d7a45bdf5dc9dcf9c5d54dccf51"
checksum = "af99a43c4436b6c9a37c27a822ff05238bbad134bcdf6176732208acfae46a3f"
dependencies = [
"icu_provider 1.5.0",
"icu_provider",
"postcard",
"serde",
"writeable 0.5.5",
"zerotrie 0.1.3",
"zerovec 0.10.4",
]
[[package]]
name = "icu_provider_macros"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.119",
"writeable",
"zerotrie",
"zerovec",
]
[[package]]
name = "icu_segmenter"
version = "1.5.0"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a717725612346ffc2d7b42c94b820db6908048f39434504cb130e8b46256b0de"
checksum = "5c0794db0b1a86193ac9c48768d0e6c52c54448e0870ad87907d456ee0dac964"
dependencies = [
"core_maths",
"displaydoc",
"icu_collections 1.5.0",
"icu_locid",
"icu_provider 1.5.0",
"icu_collections",
"icu_locale",
"icu_provider",
"icu_segmenter_data",
"potential_utf",
"serde",
"utf8_iter",
"zerovec 0.10.4",
"zerovec",
]
[[package]]
name = "icu_segmenter_data"
version = "1.5.1"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1e52775179941363cc594e49ce99284d13d6948928d8e72c755f55e98caa1eb"
checksum = "e4a2c462a4d927d512f5f882a033ddd62f33a05bb9f230d98f736ac3dc85938f"
[[package]]
name = "ident_case"
@@ -2470,7 +2408,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
dependencies = [
"icu_normalizer",
"icu_properties 2.2.0",
"icu_properties",
]
[[package]]
@@ -2718,7 +2656,7 @@ dependencies = [
"subsetter",
"tiny-skia-path",
"xmp-writer",
"yoke 0.8.3",
"yoke",
"zune-jpeg",
]
@@ -2853,20 +2791,14 @@ dependencies = [
"rand_chacha",
]
[[package]]
name = "litemap"
version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23fb14cb19457329c82206317a5663005a4d404783dc74f4252769b0d5f42856"
dependencies = [
"serde",
]
[[package]]
name = "litemap"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
dependencies = [
"serde_core",
]
[[package]]
name = "lock_api"
@@ -3666,8 +3598,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6764c3b5dd454e283a30e6dfe78e9b31096d9e32036b5d1eaac7a6119ccb9a24"
dependencies = [
"cobs",
"embedded-io 0.4.0",
"embedded-io 0.6.1",
"serde",
]
@@ -3677,7 +3607,9 @@ version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
dependencies = [
"zerovec 0.11.6",
"serde_core",
"writeable",
"zerovec",
]
[[package]]
@@ -4390,6 +4322,17 @@ dependencies = [
"zmij",
]
[[package]]
name = "serde_path_to_error"
version = "0.1.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457"
dependencies = [
"itoa",
"serde",
"serde_core",
]
[[package]]
name = "serde_repr"
version = "0.1.20"
@@ -5316,17 +5259,6 @@ dependencies = [
"strict-num",
]
[[package]]
name = "tinystr"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f"
dependencies = [
"displaydoc",
"serde",
"zerovec 0.10.4",
]
[[package]]
name = "tinystr"
version = "0.8.3"
@@ -5335,7 +5267,7 @@ checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"
dependencies = [
"displaydoc",
"serde_core",
"zerovec 0.11.6",
"zerovec",
]
[[package]]
@@ -5644,7 +5576,7 @@ checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
[[package]]
name = "typst"
version = "0.14.2"
version = "0.15.1"
dependencies = [
"arrayvec",
"comemo",
@@ -5663,14 +5595,9 @@ dependencies = [
[[package]]
name = "typst-assets"
version = "0.14.2"
version = "0.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5613cb719a6222fe9b74027c3625d107767ec187bff26b8fc931cf58942c834f"
[[package]]
name = "typst-assets"
version = "0.14.2"
source = "git+https://github.com/typst/typst-assets?rev=3284e80#3284e80cc102b402e4e3db1aa071f1eadae5e7ca"
checksum = "bcee505dac6702dd1c5e65aa2e94a6179d19ee09e2e5637d7313db91765dc4e0"
dependencies = [
"bitflags 2.13.1",
]
@@ -5691,7 +5618,7 @@ dependencies = [
"tauri-plugin-dialog",
"tauri-plugin-opener",
"typst",
"typst-assets 0.14.2 (registry+https://github.com/rust-lang/crates.io-index)",
"typst-assets",
"typst-html",
"typst-kit",
"typst-layout",
@@ -5704,7 +5631,7 @@ dependencies = [
[[package]]
name = "typst-eval"
version = "0.14.2"
version = "0.15.1"
dependencies = [
"comemo",
"ecow",
@@ -5722,7 +5649,7 @@ dependencies = [
[[package]]
name = "typst-html"
version = "0.14.2"
version = "0.15.1"
dependencies = [
"az",
"bumpalo",
@@ -5731,7 +5658,7 @@ dependencies = [
"palette",
"rustc-hash",
"time",
"typst-assets 0.14.2 (git+https://github.com/typst/typst-assets?rev=3284e80)",
"typst-assets",
"typst-library",
"typst-macros",
"typst-svg",
@@ -5743,7 +5670,7 @@ dependencies = [
[[package]]
name = "typst-kit"
version = "0.14.2"
version = "0.15.1"
dependencies = [
"dirs",
"ecow",
@@ -5758,7 +5685,7 @@ dependencies = [
"serde",
"serde_json",
"tar",
"typst-assets 0.14.2 (git+https://github.com/typst/typst-assets?rev=3284e80)",
"typst-assets",
"typst-library",
"typst-syntax",
"typst-timing",
@@ -5769,7 +5696,7 @@ dependencies = [
[[package]]
name = "typst-layout"
version = "0.14.2"
version = "0.15.1"
dependencies = [
"az",
"bumpalo",
@@ -5778,9 +5705,8 @@ dependencies = [
"ecow",
"either",
"hypher",
"icu_properties 1.5.1",
"icu_provider 1.5.0",
"icu_provider_adapters",
"icu_properties",
"icu_provider",
"icu_provider_blob",
"icu_segmenter",
"kurbo",
@@ -5790,7 +5716,7 @@ dependencies = [
"rustybuzz",
"smallvec",
"ttf-parser",
"typst-assets 0.14.2 (git+https://github.com/typst/typst-assets?rev=3284e80)",
"typst-assets",
"typst-library",
"typst-macros",
"typst-syntax",
@@ -5804,7 +5730,7 @@ dependencies = [
[[package]]
name = "typst-library"
version = "0.14.2"
version = "0.15.1"
dependencies = [
"arrayvec",
"az",
@@ -5821,9 +5747,7 @@ dependencies = [
"glidesort",
"hayagriva",
"hayro-syntax",
"icu_properties 1.5.1",
"icu_provider 1.5.0",
"icu_provider_blob",
"icu_properties",
"image",
"indexmap 2.14.0",
"kamadak-exif",
@@ -5833,6 +5757,7 @@ dependencies = [
"memchr",
"moxcms",
"palette",
"percent-encoding",
"phf",
"png 0.18.1",
"rayon",
@@ -5853,7 +5778,7 @@ dependencies = [
"ttf-parser",
"two-face",
"typed-arena",
"typst-assets 0.14.2 (git+https://github.com/typst/typst-assets?rev=3284e80)",
"typst-assets",
"typst-macros",
"typst-syntax",
"typst-timing",
@@ -5870,7 +5795,7 @@ dependencies = [
[[package]]
name = "typst-macros"
version = "0.14.2"
version = "0.15.1"
dependencies = [
"heck 0.5.0",
"proc-macro2",
@@ -5880,7 +5805,7 @@ dependencies = [
[[package]]
name = "typst-pdf"
version = "0.14.2"
version = "0.15.1"
dependencies = [
"az",
"bytemuck",
@@ -5896,7 +5821,7 @@ dependencies = [
"rustc-hash",
"serde",
"smallvec",
"typst-assets 0.14.2 (git+https://github.com/typst/typst-assets?rev=3284e80)",
"typst-assets",
"typst-layout",
"typst-library",
"typst-macros",
@@ -5907,7 +5832,7 @@ dependencies = [
[[package]]
name = "typst-realize"
version = "0.14.2"
version = "0.15.1"
dependencies = [
"arrayvec",
"bumpalo",
@@ -5924,7 +5849,7 @@ dependencies = [
[[package]]
name = "typst-render"
version = "0.14.2"
version = "0.15.1"
dependencies = [
"bytemuck",
"comemo",
@@ -5935,16 +5860,17 @@ dependencies = [
"resvg",
"tiny-skia",
"ttf-parser",
"typst-assets 0.14.2 (git+https://github.com/typst/typst-assets?rev=3284e80)",
"typst-assets",
"typst-layout",
"typst-library",
"typst-macros",
"typst-timing",
"typst-utils",
]
[[package]]
name = "typst-svg"
version = "0.14.2"
version = "0.15.1"
dependencies = [
"base64 0.22.1",
"comemo",
@@ -5958,7 +5884,7 @@ dependencies = [
"rustc-hash",
"ryu",
"ttf-parser",
"typst-assets 0.14.2 (git+https://github.com/typst/typst-assets?rev=3284e80)",
"typst-assets",
"typst-layout",
"typst-library",
"typst-macros",
@@ -5969,7 +5895,7 @@ dependencies = [
[[package]]
name = "typst-syntax"
version = "0.14.2"
version = "0.15.1"
dependencies = [
"ecow",
"rustc-hash",
@@ -5986,7 +5912,7 @@ dependencies = [
[[package]]
name = "typst-timing"
version = "0.14.2"
version = "0.15.1"
dependencies = [
"parking_lot",
"serde",
@@ -5995,7 +5921,7 @@ dependencies = [
[[package]]
name = "typst-utils"
version = "0.14.2"
version = "0.15.1"
dependencies = [
"libm",
"once_cell",
@@ -6004,6 +5930,7 @@ dependencies = [
"rustc-hash",
"semver",
"siphasher",
"smallvec",
"thin-vec",
"unicode-math-class",
]
@@ -6057,7 +5984,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dce1bf08044d4b7a94028c93786f8566047edc11110595914de93362559bc658"
dependencies = [
"serde",
"tinystr 0.8.3",
"tinystr",
]
[[package]]
@@ -6067,7 +5994,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5957eb82e346d7add14182a3315a7e298f04e1ba4baac36f7f0dbfedba5fc25"
dependencies = [
"proc-macro-hack",
"tinystr 0.8.3",
"tinystr",
"unic-langid-impl",
"unic-langid-macros-impl",
]
@@ -6257,6 +6184,12 @@ dependencies = [
"xmlwriter",
]
[[package]]
name = "utf16_iter"
version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246"
[[package]]
name = "utf8_iter"
version = "1.0.4"
@@ -7122,10 +7055,10 @@ dependencies = [
]
[[package]]
name = "writeable"
version = "0.5.5"
name = "write16"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51"
checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936"
[[package]]
name = "writeable"
@@ -7229,18 +7162,6 @@ dependencies = [
"linked-hash-map",
]
[[package]]
name = "yoke"
version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40"
dependencies = [
"serde",
"stable_deref_trait",
"yoke-derive 0.7.5",
"zerofrom",
]
[[package]]
name = "yoke"
version = "0.8.3"
@@ -7248,22 +7169,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
dependencies = [
"stable_deref_trait",
"yoke-derive 0.8.2",
"yoke-derive",
"zerofrom",
]
[[package]]
name = "yoke-derive"
version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.119",
"synstructure",
]
[[package]]
name = "yoke-derive"
version = "0.8.2"
@@ -7384,18 +7293,6 @@ version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"
[[package]]
name = "zerotrie"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb594dd55d87335c5f60177cee24f19457a5ec10a065e0a3014722ad252d0a1f"
dependencies = [
"displaydoc",
"litemap 0.7.5",
"serde",
"zerovec 0.10.4",
]
[[package]]
name = "zerotrie"
version = "0.2.4"
@@ -7403,20 +7300,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf"
dependencies = [
"displaydoc",
"yoke 0.8.3",
"litemap",
"serde_core",
"yoke",
"zerofrom",
]
[[package]]
name = "zerovec"
version = "0.10.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079"
dependencies = [
"serde",
"yoke 0.7.5",
"zerofrom",
"zerovec-derive 0.10.3",
"zerovec",
]
[[package]]
@@ -7426,20 +7314,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"
dependencies = [
"serde",
"yoke 0.8.3",
"yoke",
"zerofrom",
"zerovec-derive 0.11.3",
]
[[package]]
name = "zerovec-derive"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.119",
"zerovec-derive",
]
[[package]]
+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(),