diff --git a/.github/nightly-signing-policy.json b/.github/nightly-signing-policy.json
index 6427f339db..55d2a1983c 100644
--- a/.github/nightly-signing-policy.json
+++ b/.github/nightly-signing-policy.json
@@ -123,7 +123,9 @@
}
},
"max_artifact_bytes": 2147483648,
- "automatic_signer_actors": [],
+ "automatic_signer_actors": [
+ "github-actions[bot]"
+ ],
"platforms": {
"windows-x86_64": {
"unsigned_artifact_name": "nightly-unsigned-windows-x86_64",
diff --git a/.github/scripts/release-rpm-smoke.py b/.github/scripts/release-rpm-smoke.py
new file mode 100644
index 0000000000..3d70cca7c1
--- /dev/null
+++ b/.github/scripts/release-rpm-smoke.py
@@ -0,0 +1,74 @@
+"""Check a real installed release RPM and exercise the GUI control channel."""
+
+import json
+import os
+from pathlib import Path
+import secrets
+import socket
+import subprocess
+import time
+import tempfile
+
+
+def run_smoke(results):
+ requirements = (results / "rpm-requires.txt").read_text()
+ for capability in (
+ "libc.so.6()(64bit)",
+ "libm.so.6(GLIBC_2.35)(64bit)",
+ "libgcc_s.so.1()(64bit)",
+ "libxkbcommon.so.0()(64bit)",
+ "(libvulkan.so.1()(64bit) or libEGL.so.1()(64bit))",
+ ):
+ if capability not in requirements.splitlines():
+ raise RuntimeError(f"Missing RPM requirement: {capability}")
+
+ version = subprocess.check_output(["vectorcraft-cli", "--version"], text=True)
+ (results / "cli-version.txt").write_text(version)
+ # Original fixture authored for this package smoke test; no external artwork.
+ fixture = results / "original-smoke.svg"
+ fixture.write_text('')
+ token = secrets.token_hex(32)
+ with tempfile.TemporaryDirectory(prefix="vectorcraft-runtime-") as runtime, (results / "gui.log").open("w") as log:
+ env = dict(os.environ, VECTORCRAFT_NO_PREFS="1", XDG_RUNTIME_DIR=runtime,
+ VECTORCRAFT_CONTROL_TOKEN=token)
+ app = subprocess.Popen([
+ "vectorcraft", "--control", "32180", "--automation-read-root", str(results),
+ "--automation-write-root", str(results), str(fixture),
+ ], stdout=log, stderr=subprocess.STDOUT, env=env)
+ try:
+ deadline = time.monotonic() + 90
+ while True:
+ if app.poll() is not None:
+ raise RuntimeError(f"GUI exited during startup: {app.returncode}")
+ try:
+ channel = socket.create_connection(("127.0.0.1", 32180), timeout=5)
+ break
+ except OSError:
+ if time.monotonic() >= deadline:
+ raise RuntimeError("GUI control channel did not become ready") from None
+ time.sleep(1)
+ channel.settimeout(30)
+ with channel, channel.makefile("rwb") as stream:
+ for request_id, method, params in (
+ (0, "auth", {"token": token}),
+ (1, "ui.inspect", {}),
+ ):
+ stream.write((json.dumps(dict(id=request_id, method=method, params=params)) + "\n").encode())
+ stream.flush()
+ response = json.loads(stream.readline())
+ (results / f"{method}.json").write_text(json.dumps(response, indent=2))
+ if response.get("id") != request_id or response.get("ok") is not True:
+ raise RuntimeError(f"GUI request failed: {method}")
+ finally:
+ app.terminate()
+ try:
+ app.wait(timeout=10)
+ except subprocess.TimeoutExpired:
+ app.kill()
+ app.wait()
+
+
+if __name__ == "__main__":
+ run_smoke(Path("/results"))
diff --git a/.github/scripts/tests/test_release_rpm_smoke.py b/.github/scripts/tests/test_release_rpm_smoke.py
new file mode 100644
index 0000000000..9d92237534
--- /dev/null
+++ b/.github/scripts/tests/test_release_rpm_smoke.py
@@ -0,0 +1,116 @@
+"""Exercise failures that an installed-package happy-path check cannot reproduce."""
+import importlib.util
+import json
+from pathlib import Path
+import subprocess
+import tempfile
+import unittest
+from unittest.mock import MagicMock, patch
+
+spec = importlib.util.spec_from_file_location("rpm_smoke", Path(__file__).parents[1] / "release-rpm-smoke.py")
+smoke = importlib.util.module_from_spec(spec)
+spec.loader.exec_module(smoke)
+
+
+class SmokeLifecycleTests(unittest.TestCase):
+ def setUp(self):
+ self.folder = tempfile.TemporaryDirectory()
+ self.addCleanup(self.folder.cleanup)
+ self.results = Path(self.folder.name)
+ (self.results / "rpm-requires.txt").write_text("\n".join([
+ "libc.so.6()(64bit)", "libm.so.6(GLIBC_2.35)(64bit)",
+ "libgcc_s.so.1()(64bit)", "libxkbcommon.so.0()(64bit)",
+ "(libvulkan.so.1()(64bit) or libEGL.so.1()(64bit))",
+ ]))
+ self.app = MagicMock()
+ self.app.poll.return_value = None
+ self.channel = MagicMock()
+ self.stream = self.channel.makefile.return_value.__enter__.return_value
+ self.stream.readline.side_effect = [
+ b'{"id":0,"ok":true}\n', b'{"id":1,"ok":true,"result":{"window":"fixture"}}\n',
+ ]
+ self.runtime = None
+
+ def launch(*args, **kwargs):
+ self.runtime = Path(kwargs["env"]["XDG_RUNTIME_DIR"])
+ self.assertTrue(self.runtime.is_dir())
+ return self.app
+
+ self.launch = self.start_patch(smoke.subprocess, "Popen", side_effect=launch)
+ self.start_patch(smoke.subprocess, "check_output", return_value="vectorcraft-cli 0.25.0\n")
+ self.connect = self.start_patch(smoke.socket, "create_connection", return_value=self.channel)
+ self.start_patch(smoke.time, "sleep")
+
+ def start_patch(self, owner, name, **kwargs):
+ patcher = patch.object(owner, name, **kwargs)
+ result = patcher.start()
+ self.addCleanup(patcher.stop)
+ return result
+
+ def assert_cleaned_up(self):
+ self.app.terminate.assert_called_once()
+ self.assertFalse(self.runtime.exists())
+
+ def test_success_records_inspection_and_removes_private_runtime(self):
+ smoke.run_smoke(self.results)
+ report = json.loads((self.results / "ui.inspect.json").read_text())
+ self.assertEqual(report["result"], {"window": "fixture"})
+ requests = [json.loads(call.args[0]) for call in self.stream.write.call_args_list]
+ self.assertEqual(requests[0]["method"], "auth")
+ self.assertEqual(requests[0]["params"]["token"], self.launch.call_args.kwargs["env"]["VECTORCRAFT_CONTROL_TOKEN"])
+ self.assert_cleaned_up()
+
+ def test_missing_runtime_dependency_prevents_launch(self):
+ (self.results / "rpm-requires.txt").write_text("")
+ with self.assertRaisesRegex(RuntimeError, "Missing RPM requirement"):
+ smoke.run_smoke(self.results)
+ self.launch.assert_not_called()
+
+ def test_child_exit_during_startup_is_a_failure(self):
+ self.app.poll.return_value = 1
+ self.app.returncode = 1
+ with self.assertRaisesRegex(RuntimeError, "exited during startup"):
+ smoke.run_smoke(self.results)
+ self.assert_cleaned_up()
+
+ def test_connection_is_retried_until_ready(self):
+ self.connect.side_effect = [OSError("not ready"), self.channel]
+ smoke.run_smoke(self.results)
+ self.assertEqual(self.connect.call_count, 2)
+ self.assert_cleaned_up()
+
+ def test_startup_timeout_stops_child(self):
+ self.connect.side_effect = OSError("not ready")
+ self.start_patch(smoke.time, "monotonic", side_effect=[0, 91])
+ with self.assertRaisesRegex(RuntimeError, "did not become ready"):
+ smoke.run_smoke(self.results)
+ self.assert_cleaned_up()
+
+ def test_auth_refusal_prevents_inspection(self):
+ self.stream.readline.side_effect = [b'{"id":0,"ok":false}\n']
+ with self.assertRaisesRegex(RuntimeError, "request failed: auth"):
+ smoke.run_smoke(self.results)
+ self.assertFalse((self.results / "ui.inspect.json").exists())
+ self.assert_cleaned_up()
+
+ def test_response_for_another_request_is_rejected(self):
+ self.stream.readline.side_effect = [b'{"id":0,"ok":true}\n', b'{"id":99,"ok":true}\n']
+ with self.assertRaisesRegex(RuntimeError, "request failed: ui.inspect"):
+ smoke.run_smoke(self.results)
+ self.assert_cleaned_up()
+
+ def test_malformed_response_still_stops_child(self):
+ self.stream.readline.side_effect = [b'not json\n']
+ with self.assertRaises(json.JSONDecodeError):
+ smoke.run_smoke(self.results)
+ self.assert_cleaned_up()
+
+ def test_unresponsive_child_is_killed_after_termination_timeout(self):
+ self.app.wait.side_effect = [subprocess.TimeoutExpired("vectorcraft", 10), 0]
+ smoke.run_smoke(self.results)
+ self.app.kill.assert_called_once()
+ self.assert_cleaned_up()
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/.github/workflows/cache-prune.yml b/.github/workflows/cache-prune.yml
index a79f1ed907..c1b1e73ae3 100644
--- a/.github/workflows/cache-prune.yml
+++ b/.github/workflows/cache-prune.yml
@@ -1,11 +1,10 @@
name: Cache prune
-# A pass of the cache prune after every CI attempt on main. ci.yml's `cache prune` job prunes while
-# a run's jobs save their entries, but "Re-run failed jobs" re-runs only the failed jobs: a re-run
-# `cache warm` leg saves a new entry, and the prune job, which succeeded in the first attempt, does
-# not run again. The entry it replaced would stay until the next main run, and with it the cache
-# would be over its 10 GB budget, where GitHub evicts entries a run still needs. This runs once
-# after every attempt, re-runs and canceled runs included (craft-common-actions actions/cache-prune).
+# Keeps one rolling gate entry on main, so the repository stays within its 10 GB Actions cache
+# budget, where GitHub evicts entries a run still needs. Each main CI attempt's `cache warm` leg
+# saves a new rolling entry; this deletes the entry it replaced once the attempt ends. It runs once
+# after every attempt, re-runs of failed jobs and canceled runs included (craft-common-actions
+# actions/cache-prune).
on:
workflow_run:
workflows: [CI]
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0954b5c35c..7b2bbebd5c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -26,7 +26,7 @@ jobs:
uses: storytold/craft-common-actions/.github/workflows/gate.yml@main
with:
# Same craft-fonts commit as release.yml.
- craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83
+ craft-fonts-ref: 16bbfc3d451fad51971ca3f2a28c1e69e279b67c
# A cold `cache warm` leg (the nightly run, or any run after a toolchain or lockfile change)
# took 90 minutes to reach its last three steps on 2026-11-27 and was canceled there; with
# those steps and the save it needs about two hours.
@@ -47,11 +47,27 @@ jobs:
test-shards: 6
shard-command: cargo xtask ci shard
warm-command: cargo xtask ci warm
+ # A pull request runs only the test shards whose crates its changes reach: the crates that
+ # own a changed file or declare a read of it (`[package.metadata.craft] reads`), and every
+ # crate that depends on them. Shard 6 runs on every event. The `select legs` log lists the
+ # shards left out and why; pushes to main, the nightly run and the `full-ci` label run all
+ # six. `shard-members` names each shard's crates, as xtask/src/shards.rs › GROUPS does.
+ select-tests: true
+ shard-members: |
+ vectorcraft-ui-egui
+ vectorcraft-ui-egui
+ vectorcraft-engine
+ vectorcraft vectorcraft-web vectorcraft-cli vectorcraft-mcp xtask
+ (rest)
+ (always)
+ # The warm build runs as one `cache warm /6` leg per shard, in parallel (each builds what
+ # its shard builds), and `cache warm` puts their files into the one entry it saves.
+ warm-split: true
# The dependency cache also keeps the compiled workspace crates and test executables, so a
# pull request's shards rebuild only the crates its changes reach. Each main run's `cache
# warm` leg saves a rolling entry of its own, every leg restores the newest one, and
- # `cache-prune` below deletes the one it replaced. The nightly run restores nothing and
- # builds everything from source.
+ # cache-prune.yml deletes the one it replaced after each attempt. The nightly run restores
+ # nothing and builds everything from source.
cache-workspace-crates: true
cold-build: ${{ github.event_name == 'schedule' }}
packages: >-
@@ -59,46 +75,23 @@ jobs:
libxrandr-dev libxi-dev libfontconfig1-dev libfreetype-dev mesa-vulkan-drivers
libgl1-mesa-dev
- # Keeps one rolling gate entry on main, so the repository stays within its 10 GB Actions cache
- # budget. It runs beside the gate and prunes each time the `cache warm` leg finishes saving. A
- # failed prune warns instead of failing the run, and cache-prune.yml prunes again after every
- # attempt, re-runs of failed jobs included. `watch-minutes` is longer than the gate's
- # `timeout-minutes`, so the watch outlasts a cold `cache warm` leg.
- cache-prune:
- name: cache prune
- if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
- runs-on: ubuntu-24.04
- timeout-minutes: 170
- permissions:
- actions: write
- steps:
- - name: Harden runner
- uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
- with:
- egress-policy: audit
- - name: Prune replaced cache entries
- uses: storytold/craft-common-actions/actions/cache-prune@main
- continue-on-error: true
- with:
- watch: true
- watch-minutes: 160
- saving-jobs: |
- ^gate( / cache warm \(.*\))?$
-
# The nightly cold run never restores the rolling crates entry, so the old entry is only overlap
# while the cold run saves its own: two entries of about 4.6 GB, which with the others go over the
# 10 GB cache limit and get the corpus, SonarCloud and Windows ARM64 entries evicted. This deletes
# the old entries when the `cache warm` leg starts saving (scripts/ci-clear-rolling-cache.py).
# When the leg fails or is canceled, before its save or during it, this job fails too, so "Re-run
# failed jobs" runs it again beside the re-run leg. The leg starts after `gate / select legs` and a
- # free runner: the script fails when the leg has not started within 120 minutes, and then waits
- # up to 160 minutes from the leg's start. This job's timeout is longer than both together, so the
- # script reports a leg that starts late with its own error before the job times out.
+ # free runner, and with `warm-split` after every `cache warm /6` leg. The script suspends its
+ # start deadline while any split leg is queued or running, then allows 180 minutes from the last
+ # split completion for the saving leg to start. Without split legs, it allows 180 minutes from
+ # the script's start. A failed split leg fails this job too. The script then waits up to 160
+ # minutes from the saving leg's start. GitHub's 360-minute job limit can end this job before the
+ # script's deadlines expire when split builds or runner waits take too long.
cold-cache-clear:
name: cold cache clear
if: github.event_name == 'schedule'
runs-on: ubuntu-24.04
- timeout-minutes: 290
+ timeout-minutes: 360
permissions:
actions: write
steps:
diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml
index c74a3e83ab..4edc2fbfdc 100644
--- a/.github/workflows/freebsd.yml
+++ b/.github/workflows/freebsd.yml
@@ -29,7 +29,7 @@ jobs:
uses: storytold/craft-common-actions/.github/workflows/freebsd.yml@main
with:
require-craft-fonts: true
- craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83
+ craft-fonts-ref: 16bbfc3d451fad51971ca3f2a28c1e69e279b67c
run-package-check: true
# The test builds of this workspace's largest crates (engine, ui-egui) need more than the
# VM's 12 GB when two compile at once: the build was killed (exit 137) every night with
diff --git a/.github/workflows/nightly-dispatch.yml b/.github/workflows/nightly-dispatch.yml
index dd4a4a02da..4ef372c40b 100644
--- a/.github/workflows/nightly-dispatch.yml
+++ b/.github/workflows/nightly-dispatch.yml
@@ -11,9 +11,9 @@ permissions: {}
jobs:
dispatch:
- # SOURCE PREPARATION: literal off until immutable shared tooling and policy qualification.
+ # Enabled for automated scheduled producer completions on main.
if: >-
- false && github.repository == 'storytold/vectorcraft' &&
+ github.repository == 'storytold/vectorcraft' &&
github.event_name == 'workflow_run'
runs-on: ubuntu-latest
timeout-minutes: 5
diff --git a/.github/workflows/nightly-macos.yml b/.github/workflows/nightly-macos.yml
index 59536dcf36..2ae797d92d 100644
--- a/.github/workflows/nightly-macos.yml
+++ b/.github/workflows/nightly-macos.yml
@@ -47,7 +47,7 @@ jobs:
- name: Check out craft-fonts
uses: storytold/craft-common-actions/actions/checkout-craft-fonts@main
with:
- ref: b076417b5880bd4154bd22f00695b1d28c6bea83
+ ref: 16bbfc3d451fad51971ca3f2a28c1e69e279b67c
- id: rust
uses: storytold/craft-common-actions/actions/rust-channel@main
with:
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 0e963e43e1..4d11ae3d96 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -1,8 +1,9 @@
name: VectorCraft unsigned nightly
-# Enabled for supervised manual runs by the reviewed manual actor only; no schedule yet.
-# A later explicit opt-in may add a cadence (and turn on nightly-dispatch.yml with it).
+# Automated daily nightly builds at 06:30 UTC, plus supervised manual runs by reviewed manual actors.
on:
+ schedule:
+ - cron: '30 6 * * *'
workflow_dispatch:
permissions:
@@ -27,7 +28,7 @@ jobs:
tooling-revision: main
app-name: vectorcraft
manual-actors: '["bflatastic","dylanmtaylor","echelon","FredApps","skylartaylor"]'
- craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83
+ craft-fonts-ref: 16bbfc3d451fad51971ca3f2a28c1e69e279b67c
# One producer run builds every listed platform for one all-or-nothing release. The pin is the
# craft-common-actions main commit that merged the exact-analysis admission (#371, after #370,
# #369 and #364).
diff --git a/.github/workflows/release-rpm-smoke.yml b/.github/workflows/release-rpm-smoke.yml
new file mode 100644
index 0000000000..61948e0f35
--- /dev/null
+++ b/.github/workflows/release-rpm-smoke.yml
@@ -0,0 +1,114 @@
+name: Release RPM smoke
+
+on:
+ workflow_dispatch:
+ inputs:
+ run-id:
+ description: Release run containing both RPM artifacts (empty selects the latest available pair)
+ type: string
+ default: ""
+ pull_request:
+ paths:
+ - .github/workflows/release-rpm-smoke.yml
+ - .github/scripts/release-rpm-smoke.py
+ - .github/scripts/tests/test_release_rpm_smoke.py
+
+permissions: {}
+
+jobs:
+ source:
+ permissions:
+ actions: read
+ runs-on: ubuntu-24.04
+ timeout-minutes: 5
+ outputs:
+ run-id: ${{ steps.source.outputs.run-id }}
+ steps:
+ - id: source
+ env:
+ GH_TOKEN: ${{ github.token }}
+ RUN_ID: ${{ inputs.run-id }}
+ run: |
+ candidates="$RUN_ID"
+ if [ -z "$candidates" ]; then
+ candidates=$(gh run list --repo "$GITHUB_REPOSITORY" --workflow release.yml --branch release --limit 10 --json databaseId --jq '.[].databaseId')
+ fi
+ for candidate in $candidates; do
+ [[ "$candidate" =~ ^[0-9]+$ ]]
+ names=$(gh api "repos/$GITHUB_REPOSITORY/actions/runs/$candidate/artifacts?per_page=100" --jq '.artifacts[] | select(.expired == false) | .name')
+ if grep -Fxq release-linux-x86_64 <<< "$names" && grep -Fxq release-linux-aarch64 <<< "$names"; then
+ printf 'run-id=%s\n' "$candidate" >> "$GITHUB_OUTPUT"
+ exit 0
+ fi
+ done
+ echo '::error::No release run has both Linux package artifacts available'
+ exit 1
+ smoke:
+ permissions:
+ contents: read
+ actions: read
+ needs: source
+ timeout-minutes: 25
+ strategy:
+ fail-fast: false
+ matrix:
+ platform:
+ - {arch: x86_64, runner: ubuntu-24.04}
+ - {arch: aarch64, runner: ubuntu-24.04-arm}
+ distro: [fedora, rocky, opensuse]
+ runs-on: ${{ matrix.platform.runner }}
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
+ with:
+ persist-credentials: false
+ - name: Download the release packages
+ env:
+ GH_TOKEN: ${{ github.token }}
+ RUN_ID: ${{ needs.source.outputs.run-id }}
+ ARCH: ${{ matrix.platform.arch }}
+ run: |
+ [[ "$RUN_ID" =~ ^[0-9]+$ ]]
+ mkdir -p packages results
+ gh run view "$RUN_ID" --json headSha,url > results/source.json
+ gh run download "$RUN_ID" --name "release-linux-$ARCH" --dir packages
+ sha256sum packages/*.rpm > results/rpm-sha256.txt
+ - name: Install and start the RPM on the target distribution
+ env:
+ DISTRO: ${{ matrix.distro }}
+ run: |
+ sudo apt-get update -qq
+ sudo apt-get install -y xvfb
+ Xvfb :99 -screen 0 1440x900x24 -ac -nolisten tcp > results/xvfb.log 2>&1 &
+ for _attempt in {1..20}; do
+ [ -S /tmp/.X11-unix/X99 ] && break
+ sleep 1
+ done
+ [ -S /tmp/.X11-unix/X99 ]
+ case "$DISTRO" in
+ fedora) image=fedora:latest ;;
+ rocky) image=rockylinux:10 ;;
+ opensuse) image=opensuse/tumbleweed:latest ;;
+ esac
+ docker pull "$image"
+ docker image inspect "$image" --format '{{json .RepoDigests}}' > results/container-digest.json
+ docker run --rm --ipc=host --name rpm-smoke -e DISTRO -e DISPLAY=:99 -e LIBGL_ALWAYS_SOFTWARE=1 \
+ -v /tmp/.X11-unix:/tmp/.X11-unix:ro -v "$PWD/packages:/packages:ro" \
+ -v "$PWD/results:/results" -v "$PWD/.github/scripts:/checks:ro" "$image" bash -euc '
+ cat /etc/os-release > /results/os-release.txt
+ if [ "$DISTRO" = opensuse ]; then
+ zypper --non-interactive refresh
+ zypper --non-interactive install python3 Mesa-dri Mesa-libEGL1 libX11-6 libXcursor1 libXi6 libXrandr2 libxkbcommon0 libxkbcommon-x11-0
+ zypper --non-interactive --no-gpg-checks install /packages/*.rpm
+ else
+ dnf -y install python3 mesa-dri-drivers mesa-libEGL libX11 libXcursor libXi libXrandr libxkbcommon libxkbcommon-x11
+ dnf -y --nogpgcheck install /packages/*.rpm
+ fi
+ rpm -qp --requires /packages/*.rpm > /results/rpm-requires.txt
+ python3 /checks/release-rpm-smoke.py
+ '
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
+ if: always()
+ with:
+ name: rpm-smoke-${{ matrix.distro }}-${{ matrix.platform.arch }}
+ path: results/
+ if-no-files-found: error
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 538d09cc31..020f90e1ec 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -43,7 +43,8 @@ jobs:
app-name: vectorcraft
app-title: VectorCraft
macos-runner: macos-15
- craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83
+ macos-split-build: true
+ craft-fonts-ref: 16bbfc3d451fad51971ca3f2a28c1e69e279b67c
web-craft-fonts: true
version: ${{ inputs.version }}
contributors-artifact: ${{ needs.credits.outputs.artifact-name }}
diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml
index dde1f6f5a8..98e9c1d00a 100644
--- a/.github/workflows/sonarcloud.yml
+++ b/.github/workflows/sonarcloud.yml
@@ -21,4 +21,7 @@ jobs:
# The reusable workflow defaults build-jobs to 2 so a cold instrumented
# archive stays within hosted-runner memory (craft-common-actions#333).
uses: storytold/craft-common-actions/.github/workflows/sonarcloud.yml@main
+ with:
+ python-coverage-source: .github/scripts
+ python-coverage-script: .github/scripts/tests/test_release_rpm_smoke.py
secrets: inherit
diff --git a/AGENTS.md b/AGENTS.md
index a8f8b84f7e..bac119a742 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -69,7 +69,7 @@ VectorCraft is an open-source, Rust-native vector illustration app (Illustrator-
- `crates/*`: engine, tools, format, svg, pdf, text, theme, mcp and the egui frontend `crates/ui-egui`; `apps/{vectorcraft, vectorcraft-cli, vectorcraft-web}`; `xtask`. `cargo xtask layers` enforces the layering: nothing below L6 depends on egui, eframe, winit or rfd.
- Commands live in `crates/engine/src/cmd/*` (id, label, menu path, shortcut, params doc, `enabled`, `run`); UI-only commands in `crates/ui-egui/src/menus.rs` (`UI_COMMANDS`). Colours come from `theme::Tokens`.
- Control channel methods: `crates/ui-egui/src/control.rs`. MCP: `docs/mcp.md`.
-- `ROADMAP.md` (stage, numbers, progress log), `docs/gaps.md` (ranked work list), `docs/target-app-parity.md`, `docs/roadmap.md` and the parity checklists in `docs/` track progress. Feature PRs update the rows they touch.
+- `ROADMAP.md` (stage, numbers, progress log), `docs/gaps.md` (ranked work list), `docs/target-app-parity.md`, `docs/roadmap.md` and the parity checklists in `docs/` track progress. Feature PRs update the rows they touch. Headless ([RFC-0052](https://github.com/storytold/craft-contrib/blob/main/rfcs/0052-headless-reach.md)): `docs/ui-parity.md` has a Headless column on the Summary table and every behaviour table; every row is `unknown` until checked (350 unknown today). A checked row may be marked `no ()` or `partial ()` with `window`, `os` or `engine-gap` (a `partial` row's notes say which part works); `yes` only when the row cites a registry command id (LightCraft's `cmd:` is the model). Some rows already cite ids such as `toolbar.show`, but none is a registry command id yet, and desktop-only ids (including `crates/mcp/src/ui_catalog.rs`) do not count. Update the summary counts when you mark rows.
- Build, test, fonts, localisation, cursors and robustness details: [`docs/development.md`](docs/development.md). Releases: [`docs/releasing.md`](docs/releasing.md).
### Checks
diff --git a/Cargo.lock b/Cargo.lock
index 3cb674e4ae..d0216e2962 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -626,12 +626,6 @@ dependencies = [
"cpufeatures 0.3.1",
]
-[[package]]
-name = "block"
-version = "0.1.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"
-
[[package]]
name = "block-buffer"
version = "0.10.4"
@@ -725,6 +719,17 @@ dependencies = [
"brotli-decompressor 5.0.3",
]
+[[package]]
+name = "brotli"
+version = "9.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9071f285ed78f04f37d675abaaef5de7689e2f30a216c8dc6795465d81910a13"
+dependencies = [
+ "alloc-no-stdlib 3.0.0",
+ "alloc-stdlib 0.3.0",
+ "brotli-decompressor 6.3.2",
+]
+
[[package]]
name = "brotli-decompressor"
version = "5.0.3"
@@ -1184,19 +1189,6 @@ dependencies = [
"libc",
]
-[[package]]
-name = "core-graphics2"
-version = "0.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b65858d95344d2711161cd92196732f67d6c5fea238cf12f994584828731a5c"
-dependencies = [
- "bitflags 2.13.2",
- "block",
- "cfg-if",
- "core-foundation 0.10.1",
- "libc",
-]
-
[[package]]
name = "core_detect"
version = "1.0.0"
@@ -1239,7 +1231,7 @@ dependencies = [
[[package]]
name = "craft"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-automation",
"craft-behavior",
@@ -1280,7 +1272,7 @@ dependencies = [
[[package]]
name = "craft-affinity"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"crc32fast",
"flate2",
@@ -1291,18 +1283,19 @@ dependencies = [
[[package]]
name = "craft-appkit"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"block2 0.6.2",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
+ "objc2-core-graphics",
"objc2-foundation 0.3.2",
]
[[package]]
name = "craft-atomic"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"rustix 1.1.6",
]
@@ -1310,7 +1303,7 @@ dependencies = [
[[package]]
name = "craft-automation"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"base64 0.23.1",
"craft-behavior",
@@ -1335,7 +1328,7 @@ dependencies = [
[[package]]
name = "craft-behavior"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"accesskit",
"bitflags 2.13.2",
@@ -1353,7 +1346,7 @@ dependencies = [
[[package]]
name = "craft-browse"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-docpath",
@@ -1371,7 +1364,7 @@ dependencies = [
[[package]]
name = "craft-cdr"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"crc32fast",
"flate2",
@@ -1380,7 +1373,7 @@ dependencies = [
[[package]]
name = "craft-cloud-ui"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"egui",
]
@@ -1388,7 +1381,7 @@ dependencies = [
[[package]]
name = "craft-cms"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"md-5",
"rayon",
@@ -1397,12 +1390,12 @@ dependencies = [
[[package]]
name = "craft-codepage"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
[[package]]
name = "craft-color-ui"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-cms",
@@ -1422,7 +1415,7 @@ dependencies = [
[[package]]
name = "craft-control"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-control-protocol",
"craft-platform",
@@ -1433,7 +1426,7 @@ dependencies = [
[[package]]
name = "craft-control-protocol"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"getrandom 0.3.4",
"serde_json",
@@ -1443,7 +1436,7 @@ dependencies = [
[[package]]
name = "craft-dds"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"rayon",
]
@@ -1451,7 +1444,7 @@ dependencies = [
[[package]]
name = "craft-dialogs"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"block2 0.6.2",
"craft-appkit",
@@ -1477,7 +1470,7 @@ dependencies = [
[[package]]
name = "craft-doc"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"blake3",
"craft-ecproj-format",
@@ -1493,7 +1486,7 @@ dependencies = [
[[package]]
name = "craft-docpath"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"serde",
]
@@ -1501,7 +1494,7 @@ dependencies = [
[[package]]
name = "craft-draw"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-color-ui",
@@ -1520,7 +1513,7 @@ dependencies = [
[[package]]
name = "craft-dxf"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-codepage",
"encoding_rs",
@@ -1532,7 +1525,7 @@ dependencies = [
[[package]]
name = "craft-ecproj-format"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"serde",
"serde_json",
@@ -1542,12 +1535,12 @@ dependencies = [
[[package]]
name = "craft-eps"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
[[package]]
name = "craft-font-catalog"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"fontique",
"harfrust 0.13.3",
@@ -1562,7 +1555,7 @@ dependencies = [
[[package]]
name = "craft-font-manager"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-font-catalog",
@@ -1581,7 +1574,7 @@ dependencies = [
[[package]]
name = "craft-font-os-windows"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"windows-registry",
"windows-sys 0.61.2",
@@ -1590,7 +1583,7 @@ dependencies = [
[[package]]
name = "craft-font-store"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"cap-primitives",
"craft-atomic",
@@ -1613,12 +1606,12 @@ dependencies = [
[[package]]
name = "craft-fonts-build"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
[[package]]
name = "craft-gif"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"gif",
]
@@ -1626,7 +1619,7 @@ dependencies = [
[[package]]
name = "craft-gzip"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"flate2",
]
@@ -1634,7 +1627,7 @@ dependencies = [
[[package]]
name = "craft-host"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"bitflags 2.13.2",
"craft-i18n",
@@ -1647,8 +1640,10 @@ dependencies = [
[[package]]
name = "craft-i18n"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
+ "brotli 9.1.3",
+ "brotli-decompressor 6.3.2",
"chrono",
"fixed_decimal",
"icu_calendar",
@@ -1675,7 +1670,7 @@ dependencies = [
[[package]]
name = "craft-image-codecs"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-dds",
"craft-jpeg",
@@ -1702,7 +1697,7 @@ dependencies = [
[[package]]
name = "craft-imaging"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-color-ui",
@@ -1720,7 +1715,7 @@ dependencies = [
[[package]]
name = "craft-jpeg"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"thiserror 2.0.21",
]
@@ -1728,7 +1723,7 @@ dependencies = [
[[package]]
name = "craft-jxl"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"brotli-decompressor 5.0.3",
"jixel",
@@ -1739,7 +1734,7 @@ dependencies = [
[[package]]
name = "craft-keymap"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-host",
"craft-i18n",
@@ -1754,7 +1749,7 @@ dependencies = [
[[package]]
name = "craft-layers"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-i18n",
@@ -1768,7 +1763,7 @@ dependencies = [
[[package]]
name = "craft-menu"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-host",
@@ -1786,7 +1781,7 @@ dependencies = [
[[package]]
name = "craft-metadata"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"brotli-decompressor 6.3.2",
"chrono",
@@ -1798,7 +1793,7 @@ dependencies = [
[[package]]
name = "craft-metafile"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"encoding_rs",
"image",
@@ -1809,17 +1804,26 @@ dependencies = [
[[package]]
name = "craft-mime"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"chrono",
"craft-codepage",
"encoding_rs",
]
+[[package]]
+name = "craft-nightly"
+version = "0.1.0"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
+dependencies = [
+ "uds_windows",
+ "winsafe",
+]
+
[[package]]
name = "craft-pages"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -1835,7 +1839,7 @@ dependencies = [
[[package]]
name = "craft-pcraft-format"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"flate2",
"serde",
@@ -1846,7 +1850,7 @@ dependencies = [
[[package]]
name = "craft-pdf"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"hayro-interpret",
"hayro-syntax",
@@ -1858,12 +1862,12 @@ dependencies = [
[[package]]
name = "craft-platform"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"async-channel",
"async-io",
"async-process",
- "core-graphics2",
+ "craft-appkit",
"craft-atomic",
"craft-docpath",
"craft-host",
@@ -1873,6 +1877,8 @@ dependencies = [
"js-sys",
"log",
"objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
"rfd",
"serde",
"serde_json",
@@ -1889,7 +1895,7 @@ dependencies = [
[[package]]
name = "craft-plotter"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"kurbo 0.13.1",
"thiserror 2.0.21",
@@ -1898,7 +1904,7 @@ dependencies = [
[[package]]
name = "craft-print"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-host",
@@ -1922,7 +1928,7 @@ dependencies = [
[[package]]
name = "craft-proof"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"log",
"miniz_oxide 0.9.1",
@@ -1933,7 +1939,7 @@ dependencies = [
[[package]]
name = "craft-ps"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-eps",
"flate2",
@@ -1947,7 +1953,7 @@ dependencies = [
[[package]]
name = "craft-psd"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"encoding_rs",
"flate2",
@@ -1958,7 +1964,7 @@ dependencies = [
[[package]]
name = "craft-quit"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"dispatch2",
"egui",
@@ -1971,7 +1977,7 @@ dependencies = [
[[package]]
name = "craft-review"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"base64 0.23.1",
"craft-behavior",
@@ -1990,7 +1996,7 @@ dependencies = [
[[package]]
name = "craft-settings"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-atomic",
"craft-host",
@@ -2007,7 +2013,7 @@ dependencies = [
[[package]]
name = "craft-stream-codecs"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"fax",
"hayro-ccitt",
@@ -2018,7 +2024,7 @@ dependencies = [
[[package]]
name = "craft-svg"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-image-codecs",
"craft-xml",
@@ -2039,7 +2045,7 @@ dependencies = [
[[package]]
name = "craft-table"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -2051,7 +2057,7 @@ dependencies = [
[[package]]
name = "craft-text"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-font-manager",
@@ -2076,7 +2082,7 @@ dependencies = [
[[package]]
name = "craft-theme"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"bitflags 2.13.2",
"craft-tracked",
@@ -2091,7 +2097,7 @@ dependencies = [
[[package]]
name = "craft-theme-store"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-atomic",
"craft-behavior",
@@ -2106,7 +2112,7 @@ dependencies = [
[[package]]
name = "craft-tiff"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"serde",
"thiserror 2.0.21",
@@ -2116,7 +2122,7 @@ dependencies = [
[[package]]
name = "craft-time"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"serde",
"thiserror 2.0.21",
@@ -2125,7 +2131,7 @@ dependencies = [
[[package]]
name = "craft-timeline"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -2140,12 +2146,12 @@ dependencies = [
[[package]]
name = "craft-tracked"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
[[package]]
name = "craft-ui"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-cloud-ui",
"craft-ui-canvas",
@@ -2159,9 +2165,10 @@ dependencies = [
[[package]]
name = "craft-ui-canvas"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
+ "craft-font-catalog",
"craft-i18n",
"craft-keymap",
"craft-theme",
@@ -2175,7 +2182,7 @@ dependencies = [
[[package]]
name = "craft-ui-contract"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"accesskit",
"craft-behavior",
@@ -2213,7 +2220,7 @@ dependencies = [
[[package]]
name = "craft-ui-macros"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"proc-macro-crate",
"proc-macro2",
@@ -2224,7 +2231,7 @@ dependencies = [
[[package]]
name = "craft-ui-panels"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2242,7 +2249,7 @@ dependencies = [
[[package]]
name = "craft-ui-patterns"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2263,7 +2270,7 @@ dependencies = [
[[package]]
name = "craft-ui-shell"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2284,7 +2291,7 @@ dependencies = [
[[package]]
name = "craft-ui-widgets"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2303,7 +2310,7 @@ dependencies = [
[[package]]
name = "craft-update"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"base64 0.22.1",
"chrono",
@@ -2335,7 +2342,7 @@ dependencies = [
[[package]]
name = "craft-vectorcraft-format"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"flate2",
"serde",
@@ -2346,7 +2353,7 @@ dependencies = [
[[package]]
name = "craft-wayland"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"raw-window-handle",
"wayland-backend",
@@ -2356,7 +2363,7 @@ dependencies = [
[[package]]
name = "craft-web-api"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"js-sys",
"serde_json",
@@ -2367,7 +2374,7 @@ dependencies = [
[[package]]
name = "craft-win32"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"winsafe",
]
@@ -2375,7 +2382,7 @@ dependencies = [
[[package]]
name = "craft-window"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"craft-appkit",
"craft-atomic",
@@ -2407,7 +2414,7 @@ dependencies = [
[[package]]
name = "craft-xml"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"quick-xml 0.41.0",
"serde",
@@ -2752,7 +2759,7 @@ checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
[[package]]
name = "ecolor"
version = "0.37.0"
-source = "git+https://github.com/storytold/egui.git?rev=14c39fed181756be6f357c284354e0ab55b64443#14c39fed181756be6f357c284354e0ab55b64443"
+source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6"
dependencies = [
"bytemuck",
"emath",
@@ -2785,7 +2792,7 @@ dependencies = [
[[package]]
name = "eframe"
version = "0.37.0"
-source = "git+https://github.com/storytold/egui.git?rev=14c39fed181756be6f357c284354e0ab55b64443#14c39fed181756be6f357c284354e0ab55b64443"
+source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6"
dependencies = [
"ahash",
"bytemuck",
@@ -2820,7 +2827,7 @@ dependencies = [
[[package]]
name = "egui"
version = "0.37.0"
-source = "git+https://github.com/storytold/egui.git?rev=14c39fed181756be6f357c284354e0ab55b64443#14c39fed181756be6f357c284354e0ab55b64443"
+source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6"
dependencies = [
"accesskit",
"ahash",
@@ -2839,7 +2846,7 @@ dependencies = [
[[package]]
name = "egui-wgpu"
version = "0.37.0"
-source = "git+https://github.com/storytold/egui.git?rev=14c39fed181756be6f357c284354e0ab55b64443#14c39fed181756be6f357c284354e0ab55b64443"
+source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6"
dependencies = [
"ahash",
"bytemuck",
@@ -2858,7 +2865,7 @@ dependencies = [
[[package]]
name = "egui-winit"
version = "0.37.0"
-source = "git+https://github.com/storytold/egui.git?rev=14c39fed181756be6f357c284354e0ab55b64443#14c39fed181756be6f357c284354e0ab55b64443"
+source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6"
dependencies = [
"accesskit_winit",
"arboard",
@@ -2883,7 +2890,7 @@ dependencies = [
[[package]]
name = "egui_extras"
version = "0.37.0"
-source = "git+https://github.com/storytold/egui.git?rev=14c39fed181756be6f357c284354e0ab55b64443#14c39fed181756be6f357c284354e0ab55b64443"
+source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6"
dependencies = [
"ahash",
"egui",
@@ -2897,7 +2904,7 @@ dependencies = [
[[package]]
name = "egui_glow"
version = "0.37.0"
-source = "git+https://github.com/storytold/egui.git?rev=14c39fed181756be6f357c284354e0ab55b64443#14c39fed181756be6f357c284354e0ab55b64443"
+source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6"
dependencies = [
"bytemuck",
"egui",
@@ -2910,7 +2917,7 @@ dependencies = [
[[package]]
name = "egui_kittest"
version = "0.37.0"
-source = "git+https://github.com/storytold/egui.git?rev=14c39fed181756be6f357c284354e0ab55b64443#14c39fed181756be6f357c284354e0ab55b64443"
+source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6"
dependencies = [
"dify",
"eframe",
@@ -2936,7 +2943,7 @@ checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
[[package]]
name = "emath"
version = "0.37.0"
-source = "git+https://github.com/storytold/egui.git?rev=14c39fed181756be6f357c284354e0ab55b64443#14c39fed181756be6f357c284354e0ab55b64443"
+source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6"
dependencies = [
"bytemuck",
]
@@ -3017,7 +3024,7 @@ dependencies = [
[[package]]
name = "epaint"
version = "0.37.0"
-source = "git+https://github.com/storytold/egui.git?rev=14c39fed181756be6f357c284354e0ab55b64443#14c39fed181756be6f357c284354e0ab55b64443"
+source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6"
dependencies = [
"ahash",
"bytemuck",
@@ -3043,7 +3050,11 @@ dependencies = [
[[package]]
name = "epaint_default_fonts"
version = "0.37.0"
-source = "git+https://github.com/storytold/egui.git?rev=14c39fed181756be6f357c284354e0ab55b64443#14c39fed181756be6f357c284354e0ab55b64443"
+source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6"
+dependencies = [
+ "brotli 9.1.3",
+ "brotli-decompressor 6.3.2",
+]
[[package]]
name = "equivalent"
@@ -3762,16 +3773,16 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a"
[[package]]
name = "hayro-cmap"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
- "brotli",
+ "brotli 8.0.4",
"hayro-postscript",
]
[[package]]
name = "hayro-interpret"
version = "0.7.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"bitflags 2.13.2",
"hayro-cmap",
@@ -3789,7 +3800,7 @@ dependencies = [
[[package]]
name = "hayro-jbig2"
version = "0.3.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"fearless_simd",
"hayro-ccitt",
@@ -3807,12 +3818,12 @@ dependencies = [
[[package]]
name = "hayro-postscript"
version = "0.1.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
[[package]]
name = "hayro-syntax"
version = "0.7.2"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"flate2",
"hayro-ccitt",
@@ -4795,7 +4806,7 @@ dependencies = [
[[package]]
name = "krilla"
version = "0.8.2"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"base64 0.22.1",
"bumpalo",
@@ -4952,7 +4963,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
[[package]]
name = "linesweeper"
version = "0.5.0"
-source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
+source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
dependencies = [
"arrayvec",
"kurbo 0.13.1",
@@ -8515,13 +8526,14 @@ dependencies = [
[[package]]
name = "vectorcraft"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"arboard",
"block2 0.6.2",
"chrono",
"clipboard-win",
"craft",
+ "craft-nightly",
"eframe",
"egui",
"egui_extras",
@@ -8558,37 +8570,36 @@ dependencies = [
[[package]]
name = "vectorcraft-affinity"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft-affinity",
"craft-image-codecs",
- "crc32fast",
"proptest",
"vectorcraft-affinity",
]
[[package]]
name = "vectorcraft-apischema"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"serde_json",
]
[[package]]
name = "vectorcraft-brush"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"kurbo 0.13.1",
"serde",
"serde_json",
"vectorcraft-color",
"vectorcraft-doc",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
]
[[package]]
name = "vectorcraft-cad"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft-dxf",
"craft-image-codecs",
@@ -8600,14 +8611,14 @@ dependencies = [
"vectorcraft-color",
"vectorcraft-doc",
"vectorcraft-effects",
- "vectorcraft-geom 0.25.0",
- "vectorcraft-pathops 0.25.0",
+ "vectorcraft-geom 0.25.1",
+ "vectorcraft-pathops 0.25.1",
"vectorcraft-text",
]
[[package]]
name = "vectorcraft-cli"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"log",
"objc2-core-foundation",
@@ -8618,7 +8629,7 @@ dependencies = [
"vectorcraft-doc",
"vectorcraft-engine",
"vectorcraft-format",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
"vectorcraft-mcp",
"vectorcraft-render",
"vectorcraft-svg",
@@ -8630,7 +8641,7 @@ dependencies = [
[[package]]
name = "vectorcraft-color"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft-cms",
"craft-color-ui",
@@ -8646,7 +8657,7 @@ dependencies = [
[[package]]
name = "vectorcraft-doc"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"chrono",
"craft-image-codecs",
@@ -8662,13 +8673,13 @@ dependencies = [
"thiserror 2.0.21",
"tiff",
"vectorcraft-color",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
"zune-jpeg",
]
[[package]]
name = "vectorcraft-effects"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft-image-codecs",
"craft-svg",
@@ -8678,8 +8689,8 @@ dependencies = [
"svgtypes 0.16.1",
"vectorcraft-color",
"vectorcraft-doc",
- "vectorcraft-geom 0.25.0",
- "vectorcraft-pathops 0.25.0",
+ "vectorcraft-geom 0.25.1",
+ "vectorcraft-pathops 0.25.1",
"vectorcraft-plugins",
"vectorcraft-text",
"vectorcraft-three-d",
@@ -8689,7 +8700,7 @@ dependencies = [
[[package]]
name = "vectorcraft-engine"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"apple-native-keyring-store",
"cfb",
@@ -8738,10 +8749,10 @@ dependencies = [
"vectorcraft-doc",
"vectorcraft-eps",
"vectorcraft-format",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
"vectorcraft-js",
"vectorcraft-metafile",
- "vectorcraft-pathops 0.25.0",
+ "vectorcraft-pathops 0.25.1",
"vectorcraft-pdf",
"vectorcraft-plugins",
"vectorcraft-render",
@@ -8761,7 +8772,7 @@ dependencies = [
[[package]]
name = "vectorcraft-eps"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft-eps",
"craft-image-codecs",
@@ -8782,9 +8793,9 @@ dependencies = [
"vectorcraft-doc",
"vectorcraft-effects",
"vectorcraft-eps",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
"vectorcraft-metafile",
- "vectorcraft-pathops 0.25.0",
+ "vectorcraft-pathops 0.25.1",
"vectorcraft-pdf",
"vectorcraft-render",
"vectorcraft-testkit",
@@ -8793,7 +8804,7 @@ dependencies = [
[[package]]
name = "vectorcraft-format"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft-gzip",
"craft-vectorcraft-format",
@@ -8805,7 +8816,7 @@ dependencies = [
"thiserror 2.0.21",
"vectorcraft-brush",
"vectorcraft-doc",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
"vectorcraft-testkit",
]
@@ -8821,7 +8832,7 @@ dependencies = [
[[package]]
name = "vectorcraft-geom"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"kurbo 0.13.1",
"proptest",
@@ -8832,7 +8843,7 @@ dependencies = [
[[package]]
name = "vectorcraft-js"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"chrono",
"craft-xml",
@@ -8843,7 +8854,7 @@ dependencies = [
[[package]]
name = "vectorcraft-mcp"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft",
"craft-image-codecs",
@@ -8855,7 +8866,7 @@ dependencies = [
"vectorcraft-doc",
"vectorcraft-engine",
"vectorcraft-format",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
"vectorcraft-render",
"vectorcraft-svg",
"vectorcraft-testkit",
@@ -8864,7 +8875,7 @@ dependencies = [
[[package]]
name = "vectorcraft-metafile"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft-image-codecs",
"craft-metafile",
@@ -8874,7 +8885,7 @@ dependencies = [
"vectorcraft-color",
"vectorcraft-doc",
"vectorcraft-effects",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
"vectorcraft-text",
]
@@ -8891,19 +8902,19 @@ dependencies = [
[[package]]
name = "vectorcraft-pathops"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"kurbo 0.13.1",
"linesweeper",
"proptest",
"thiserror 2.0.21",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
"vectorcraft-testkit",
]
[[package]]
name = "vectorcraft-pdf"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"aes 0.8.4",
"chrono",
@@ -8932,7 +8943,7 @@ dependencies = [
"vectorcraft-color",
"vectorcraft-doc",
"vectorcraft-effects",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
"vectorcraft-pdf",
"vectorcraft-testkit",
"vectorcraft-text",
@@ -8940,7 +8951,7 @@ dependencies = [
[[package]]
name = "vectorcraft-plugin-worker"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"js-sys",
"vectorcraft-plugins",
@@ -8950,7 +8961,7 @@ dependencies = [
[[package]]
name = "vectorcraft-plugins"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft-image-codecs",
"craft-vectorcraft-format",
@@ -8962,7 +8973,7 @@ dependencies = [
"thiserror 2.0.21",
"vectorcraft-color",
"vectorcraft-doc",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
"vectorcraft-js",
"vectorcraft-plugins",
"wasmi",
@@ -8973,7 +8984,7 @@ dependencies = [
[[package]]
name = "vectorcraft-render"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft-gif",
"craft-image-codecs",
@@ -8991,7 +9002,7 @@ dependencies = [
"vectorcraft-color",
"vectorcraft-doc",
"vectorcraft-effects",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
"vectorcraft-plugins",
"vectorcraft-testkit",
"vectorcraft-text",
@@ -9004,7 +9015,7 @@ dependencies = [
[[package]]
name = "vectorcraft-scriptcheck"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"proptest",
"unicode-properties",
@@ -9012,7 +9023,7 @@ dependencies = [
[[package]]
name = "vectorcraft-svg"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft-docpath",
"craft-image-codecs",
@@ -9036,15 +9047,16 @@ dependencies = [
"vectorcraft-color",
"vectorcraft-doc",
"vectorcraft-effects",
- "vectorcraft-geom 0.25.0",
- "vectorcraft-pathops 0.25.0",
+ "vectorcraft-geom 0.25.1",
+ "vectorcraft-pathops 0.25.1",
+ "vectorcraft-render",
"vectorcraft-testkit",
"vectorcraft-text",
]
[[package]]
name = "vectorcraft-testkit"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft-image-codecs",
"fax",
@@ -9055,14 +9067,14 @@ dependencies = [
"vectorcraft-doc",
"vectorcraft-engine",
"vectorcraft-format",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
"vectorcraft-render",
"vectorcraft-svg",
]
[[package]]
name = "vectorcraft-text"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft",
"craft-fonts-build",
@@ -9080,23 +9092,23 @@ dependencies = [
"unicode-script",
"unicode-segmentation",
"vectorcraft-doc",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
"vello_cpu",
"write-fonts",
]
[[package]]
name = "vectorcraft-three-d"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"proptest",
- "vectorcraft-geom 0.25.0",
- "vectorcraft-pathops 0.25.0",
+ "vectorcraft-geom 0.25.1",
+ "vectorcraft-pathops 0.25.1",
]
[[package]]
name = "vectorcraft-thumbnail-handler"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"png 0.18.1",
"windows",
@@ -9105,7 +9117,7 @@ dependencies = [
[[package]]
name = "vectorcraft-tools"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft-image-codecs",
"kurbo 0.13.1",
@@ -9115,15 +9127,15 @@ dependencies = [
"vectorcraft-color",
"vectorcraft-doc",
"vectorcraft-effects",
- "vectorcraft-geom 0.25.0",
- "vectorcraft-pathops 0.25.0",
+ "vectorcraft-geom 0.25.1",
+ "vectorcraft-pathops 0.25.1",
"vectorcraft-text",
"vectorcraft-tools",
]
[[package]]
name = "vectorcraft-trace"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft-image-codecs",
"image",
@@ -9131,12 +9143,12 @@ dependencies = [
"serde",
"serde_json",
"thiserror 2.0.21",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
]
[[package]]
name = "vectorcraft-ui-egui"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"bytemuck",
"chrono",
@@ -9160,7 +9172,7 @@ dependencies = [
"vectorcraft-engine",
"vectorcraft-eps",
"vectorcraft-format",
- "vectorcraft-geom 0.25.0",
+ "vectorcraft-geom 0.25.1",
"vectorcraft-pdf",
"vectorcraft-plugins",
"vectorcraft-render",
@@ -9175,7 +9187,7 @@ dependencies = [
[[package]]
name = "vectorcraft-web"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"craft",
"craft-web-api",
@@ -10067,7 +10079,7 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
[[package]]
name = "winit"
version = "0.30.13"
-source = "git+https://github.com/storytold/winit.git?rev=a517b3846ee8457d84ee4975110bfda6797c44dc#a517b3846ee8457d84ee4975110bfda6797c44dc"
+source = "git+https://github.com/storytold/winit.git?rev=0dfcec0eb62fda5904137a63a6dd0c3d83295f45#0dfcec0eb62fda5904137a63a6dd0c3d83295f45"
dependencies = [
"ahash",
"android-activity",
@@ -10404,7 +10416,7 @@ checksum = "9440ea3e5aeabb0ac63af70daf835274065238cdd0cec83418f417eae38bacee"
[[package]]
name = "xtask"
-version = "0.25.0"
+version = "0.25.1"
dependencies = [
"serde_json",
]
diff --git a/Cargo.toml b/Cargo.toml
index 7ad3e4cfeb..843f9cbb53 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,55 +4,57 @@ members = ["crates/*", "apps/*", "xtask"]
default-members = ["crates/*", "apps/vectorcraft", "apps/vectorcraft-cli", "xtask"]
[workspace.package]
-version = "0.25.0"
+version = "0.25.1"
edition = "2024"
license = "MIT OR Apache-2.0"
rust-version = "1.95"
[workspace.dependencies]
-craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735", default-features = false, features = ["interpret", "write"] }
-craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
+craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6", default-features = false, features = ["interpret", "write"] }
+craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
# Language packs: the Craft apps' shared font store installs them (#4936).
-craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
+craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
# The `.vectorcraft` envelope: its members, version, embedded images and the data after the JSON.
-craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
+craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
# `.pcraft` documents: their manifest, full-size composite, preview, layer pixels and ICC profile.
-craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735", features = ["pcraft-pixels"] }
+craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6", features = ["pcraft-pixels"] }
# Native Affinity documents (craft-libs#914).
-craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
+craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
# Bounded CDR (v1-v27) and CMX (32-bit) reader (craft-libs#778).
-craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
+craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
# SVG parsing, limits, SVGZ and writer (craft-libs#778).
-craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735", features = ["tree"] }
-craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
+craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6", features = ["tree"] }
+craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
# EPS container, previews, ASCII85 and DSC comments (craft-libs#778).
-craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
+craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
# DXF tags, reader and writer (craft-libs#778, #926, #927).
-craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
+craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
# WMF, EMF and EMF+ reader (craft-libs#778).
-craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735", default-features = false, features = ["read", "write"] }
-craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
+craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6", default-features = false, features = ["read", "write"] }
+craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
# The framework facade (`craft::ui`, `craft::settings`, `craft::platform`, ...). No default features: each crate names
# the members it imports.
-craft = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
+craft = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
# Below the egui layer, so not through the facade: the colour harmony rules and their settings (craft-color-ui
# without its `ui` feature), the colour type they work in, and the craft-fonts tables the text crate's build writes.
-craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
+craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+# Nightly profile isolation, launch protocol, and security fence.
+craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
# internal
vectorcraft-geom = { path = "crates/geom" }
vectorcraft-color = { path = "crates/color" }
@@ -192,22 +194,22 @@ lto = "thin"
codegen-units = 1
[patch.crates-io]
-hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-krilla = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
-ecolor = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
-emath = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
-epaint = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
-epaint_default_fonts = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
-egui = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
-egui-winit = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
-egui-wgpu = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
-egui_glow = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
-egui_extras = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
-egui_kittest = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
-eframe = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
-winit = { git = "https://github.com/storytold/winit.git", rev = "a517b3846ee8457d84ee4975110bfda6797c44dc" }
+hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+krilla = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
+ecolor = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" }
+emath = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" }
+epaint = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" }
+epaint_default_fonts = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" }
+egui = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" }
+egui-winit = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" }
+egui-wgpu = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" }
+egui_glow = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" }
+egui_extras = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" }
+egui_kittest = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" }
+eframe = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" }
+winit = { git = "https://github.com/storytold/winit.git", rev = "0dfcec0eb62fda5904137a63a6dd0c3d83295f45" }
diff --git a/README.md b/README.md
index 8e51d4930e..366b0711a8 100644
--- a/README.md
+++ b/README.md
@@ -233,8 +233,8 @@ VectorCraft is under active development. [**ROADMAP.md**](ROADMAP.md) has the st
and what's next; [`docs/target-app-parity.md`](docs/target-app-parity.md) the full parity assessment and
[`docs/gaps.md`](docs/gaps.md) the ranked list of what's missing.
-**Where we are (2026-10-10): alpha.** About 88% of core menu items, tools, effects and formats exist
-(92.5% of menu items do something), feature depth is ~75%, and we estimate ~65% ready for real work for a mainstream illustrator (~62% across all tracked features): everyday
+**Where we are (2026-11-30): alpha.** About 96% of core menu items, tools, effects and formats exist
+(99.9% of menu items do something), feature depth is ~79%, and we estimate ~65% ready for real work for a mainstream illustrator (~67% across all tracked features): everyday
vector illustration is close to usable: drawing and path tools,
Pathfinder and Shape Builder, paint, gradients, appearance and transparency, type with styles, threading and Hebrew/Arabic bidirectional layout, and
files (SVG, PDF and PDF-compatible `.ai` with PDF/X, legacy version 7 `.ai` keeping layers, groups and type, EPS, DXF, EMF/WMF, raster formats, PSD out, PSD/PSB opened with their layers and placed as their merged image, JPEG XL in, Print, Package).
diff --git a/ROADMAP.md b/ROADMAP.md
index e317f148d8..84e40bc444 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -10,7 +10,7 @@ control channel. This page is the summary; the evidence is in [`docs/target-app-
and the work list in [`docs/gaps.md`](docs/gaps.md).
**Why alpha:** the core workflows exist end to end (drawing and path editing, Pathfinder, paint and appearance,
-type, SVG/PDF/EPS, print, export) and feature depth is ~75%, but a professional can't yet switch: Illustrator's
+type, SVG/PDF/EPS, print, export) and feature depth is ~79%, but a professional can't yet switch: Illustrator's
own `.ai` files open with a wrong layer structure in real cases and are saved back with an editing copy that
keeps live effects only on paths, compound paths and groups that qualify (at most a fill and a stroke, a non-zero fill rule when filled, no large canvas) and whose appearance and effects the art-style writer supports (see [docs/file-format-parity.md](docs/file-format-parity.md)), and writes live objects as their art, the interaction details have never been checked side by side, and some machines fail to start the
app. Beta needs those closed (the beta list in [gaps.md](docs/gaps.md)). It passes the core-workflow
@@ -24,8 +24,8 @@ blocking it ([Alpha gate](docs/roadmap.md#alpha-gate)).
| | Value | Kind |
|---|---|---|
-| **Feature breadth** (Illustrator's menu items, tools, effects, formats exist) | **~88%** | measured in part: menu items 717/719 wired (99.7%), tools 89/92, Illustrator effects 46/50, Photoshop effects 57/57, 3D 4/4 (initial types, no materials) |
-| **Feature depth** (weighted by use, scored by behaviour) | **~75%** | estimated |
+| **Feature breadth** (Illustrator's menu items, tools, effects, formats exist) | **~96%** | measured in part: menu items 815/816 wired (99.9%), tools 91/92, Illustrator effects 50/50, Photoshop effects 57/57, 3D 4/4 plus 3 Classic (initial types, graphics on the Materials page (#6960), no base materials) |
+| **Feature depth** (weighted by use, scored by behaviour) | **~79%** | estimated |
| **To beta** | **~170–270 h** one agent · ~50–80 h with 4–6 agents | estimated |
| **To full parity** | **~360–590 h** one agent · ~95–165 h with 4–6 agents | estimated |
@@ -33,9 +33,9 @@ blocking it ([Alpha gate](docs/roadmap.md#alpha-gate)).
| Audience | Ready % | Opus 5.5 agent hours to ~95% (one agent) | With 4–6 agents | Work that dominates |
|---|---:|---:|---:|---|
-| **Full Illustrator** (ready for real work; decides the stage) | **~62%** (57–67%) | **~340–560 h** | ~95–160 h | the mainstream work below, plus 3D (50–85 h), raster effects (23–39 h), advanced type (20–28 h), generative AI (30–60 h), localization (50–85 h) and ecosystem |
+| **Full Illustrator** (ready for real work; decides the stage) | **~67%** (62–72%) | **~340–560 h** | ~95–160 h | the mainstream work below, plus 3D (50–85 h), raster effects (23–39 h), advanced type (20–28 h), generative AI (30–60 h), localization (50–85 h) and ecosystem |
| **Mainstream illustrator** | **~65%** (60–70%) | **~230–380 h** | ~65–110 h | the interaction-fidelity pass (60–90 h), hardening and QA (30–50 h), stability (20–35 h), performance budgets (15–25 h), `.ai` exchange (10–20 h), the remaining depth of the everyday areas |
-| **Essentials user** | **~75%** (70–80%) | **~60–105 h** | ~25–45 h | launch and stability on Windows (20–35 h), in-app help and onboarding (8–15 h), basic QA (10–15 h), Shape Builder depth (4–8 h; #937's reproduced case is fixed, unconfirmed on the reporter's file), UI polish |
+| **Essentials user** | **~77%** (72–82%) | **~60–105 h** | ~25–45 h | launch and stability on Windows (20–35 h), the Windows print crashes (#8021, #9261), help articles and onboarding (8–15 h), basic QA (10–15 h), Shape Builder depth (4–8 h; #937's reproduced case is fixed, unconfirmed on the reporter's file), UI polish |
Hours are Opus 5.5 agent wall-clock hours, calibrated from this repo's merged-PR timestamps (e.g. 0.7–1.2 h per
Photoshop-style filter, ~0.8 h per medium feature); see [calibration](docs/target-app-parity.md#calibration).
@@ -46,15 +46,15 @@ everything is measured from our code against Illustrator's public documentation.
| Dimension | % | One agent (h) | Doc |
|---|---:|---:|---|
-| Features (depth) | 75% | 220–360 | [target-app-parity.md](docs/target-app-parity.md) |
-| UI/UX fidelity | 55% | 70–110 | [ui-parity.md](docs/ui-parity.md) |
+| Features (depth) | 79% | 220–360 | [target-app-parity.md](docs/target-app-parity.md) |
+| UI/UX fidelity | 60% | 70–110 | [ui-parity.md](docs/ui-parity.md) |
| File formats | 75% | 15–30 | [file-format-parity.md](docs/file-format-parity.md) |
-| Hardware (GPU, pen, touch, displays) | 35% | 25–45 | [hardware-parity.md](docs/hardware-parity.md) |
-| Localization (12 key languages) | 74% (measured) | 50–85 | [localization-parity.md](docs/localization-parity.md) |
+| Hardware (GPU, pen, touch, displays) | 45% | 25–45 | [hardware-parity.md](docs/hardware-parity.md) |
+| Localization (12 key languages) | 87% (measured) | 50–85 | [localization-parity.md](docs/localization-parity.md) |
| Performance | ~60% | 15–25 | [gaps.md › G15](docs/gaps.md#g15-performance-budgets-and-a-gpu-renderer) |
-| Stability | ~60% | 30–50 | [gaps.md › G10](docs/gaps.md#g10-launch-and-stability-on-real-machines) |
-| Platforms | 80% | 15–25 | [gaps.md › G8](docs/gaps.md#g8-hardening-at-scale) |
-| Ecosystem and plug-ins | 15% | 30–60 | [gaps.md › G17](docs/gaps.md#g17-ecosystem-third-party-plug-ins) |
+| Stability | ~55% | 30–50 | [gaps.md › G10](docs/gaps.md#g10-launch-and-stability-on-real-machines) |
+| Platforms | 82% | 15–25 | [gaps.md › G8](docs/gaps.md#g8-hardening-at-scale) |
+| Ecosystem and plug-ins | 30% | 30–60 | [gaps.md › G17](docs/gaps.md#g17-ecosystem-third-party-plug-ins) |
| AI features (generative) | 0% | 30–60 + owner decision | [gaps.md › G18](docs/gaps.md#g18-generative-ai-features) |
| Agent automation | beyond Illustrator | — | [mcp.md](docs/mcp.md) |
@@ -64,26 +64,26 @@ The dimension hours overlap (feature rows hold some UI, format and AI work), so
| Area | % | One agent (h) |
|---|---:|---:|
-| Selection, transform & align | 85% | 4–6 |
-| Drawing tools | 85% | 8–13 |
-| Path operations, Pathfinder, Shape Builder, Live Paint | 80% | 4–8 |
+| Selection, transform & align | 86% | 4–6 |
+| Drawing tools | 88% | 8–13 |
+| Path operations, Pathfinder, Shape Builder, Live Paint | 85% | 4–8 |
| Colour, swatches, gradients, patterns, mesh, recolor | 92% | 4–7 |
-| Strokes, brushes, width profiles | 88% | 8–15 |
+| Strokes, brushes, width profiles | 90% | 8–15 |
| Appearance, transparency, graphic styles, masks | 97% | 1–2 |
-| Live vector effects | 85% | 4–8 |
-| Raster effects (Effect Gallery) — [effects-parity.md](docs/effects-parity.md) | 88% | — |
-| 3D and Materials | ~25% | 30–55 |
-| Type core — [type-parity.md](docs/type-parity.md) | 80% | 14–19 |
-| Type advanced (CJK, spelling, Touch Type) | 50% | 20–28 |
-| Symbols, blends, envelopes, Repeat, perspective | 88% | 4–7 |
-| Image Trace, graphs, image tools | 75% | 5–8 |
-| Layers, artboards, document setup | 78% | 5–8 |
-| View & navigation | 70% | 9–14 |
+| Live vector effects | 90% | 4–8 |
+| Raster effects (Effect Gallery) — [effects-parity.md](docs/effects-parity.md) | 55% | — |
+| 3D and Materials | ~35% | 30–55 |
+| Type core — [type-parity.md](docs/type-parity.md) | 83% | 14–19 |
+| Type advanced (CJK, spelling, Touch Type) | 60% | 20–28 |
+| Symbols, blends, envelopes, Repeat, perspective | 90% | 4–7 |
+| Image Trace, graphs, image tools | 78% | 5–8 |
+| Layers, artboards, document setup | 82% | 5–8 |
+| View & navigation | 80% | 9–14 |
| Guides, grids, smart guides, snapping | 80% | 4–7 |
| File formats — [file-format-parity.md](docs/file-format-parity.md) | 75% | 10–20 |
-| Export for Screens, Asset Export, slices | 85% | 2–4 |
+| Export for Screens, Asset Export, slices | 87% | 2–4 |
| Print, colour management, separations | 80% | 2–4 |
-| Automation (Actions, Variables, scripting) | 60% | 8–14 |
+| Automation (Actions, Variables, scripting) | 80% | 8–14 |
| UI chrome (panels, Properties, preferences) | 80% | 13–20 |
| Libraries, Links, Package | 82% | 2–3 |
| Generative AI | 0% | 30–60 |
@@ -95,7 +95,7 @@ Weights, evidence and the missing items per area: [target-app-parity.md](docs/ta
| Language | Code | Status | Translated |
|---|---|---|---:|
| English | `en` | full | 100% |
-| Simplified Chinese | `zh-hans` | partial (messages in English) | 85% |
+| Simplified Chinese | `zh-hans` | partial (messages translated, #2578) | 85% |
| Spanish | `es` | full | 100% |
| Hindi | `hi` | catalog complete; machine-assisted draft, native review pending | complete under the scanner |
| Gujarati | `gu` | 4,673 contributor-reviewed catalog rows; 11 corrections applied to the 387 additions | menus and dialogs; status/error messages partial |
@@ -119,7 +119,7 @@ Ranked; detail in [docs/roadmap.md](docs/roadmap.md) and [docs/gaps.md](docs/gap
1. **Interaction-fidelity pass** (G1), tool by tool from [ui-parity.md](docs/ui-parity.md): 60–90 h.
2. **`.ai` files from real users** (G9): layer structure, guides, speed: 10–20 h.
3. **Launch and stability on real machines** (G10): 20–35 h.
-4. **Core-tool correctness** (G11: the unit preference reverting to points, #864, SVG export units fixed; a Transform effect in a fill's or stroke's own effects, #885; Shape Builder regions and Asset Export borders are fixed): 6–13 h.
+4. **Core-tool correctness** (G11: the unit preference reverting to points, #864, SVG export units fixed; a Transform effect in a fill's or stroke's own effects (#5221, #885), Shape Builder regions and Asset Export borders are fixed): 6–13 h.
5. **Then:** type core and advanced type (G4), the Illustrator 2026 additions (G13), 3D (G3). The Effect Gallery's filter thumbnails and in-dialog preview are in (G2).
## Progress log
@@ -155,16 +155,20 @@ Ranked; detail in [docs/roadmap.md](docs/roadmap.md) and [docs/gaps.md](docs/gap
- 2026-11-19: Quick Pen tool, in the Pen tool's group (Alt+P, Option+P on macOS): clicks or drags add straight lines, continuous arcs or sharp-corner arcs; Alt tapped on its own switches the action, C flips the last arc, `[` and `]` size it, a click on the first point closes the path and a click on an open end continues it (`path.quickPen`, part of #2660). Headline numbers unchanged.
- 2026-11-19: Quick Pen length handles: a handle beyond the start and the end of the path being drawn, or of the selected path, makes the line or arc there longer or shorter when dragged; a line keeps its direction and an arc its circle (`path.quickPenLength`, part of #2660). Headline numbers unchanged.
- 2026-11-19: Quick Pen toolbar on the canvas while the tool is active: Straight Line, Continuous Arc and Sharp Corner Arc, Flip Arc, and More Options with Hide Toolbar, Pin Toolbar Position and Reset Toolbar Position; it follows the drawing beside the path's last point and its handle drags it (`tool.quickPen.flipArc`, `window.quickPenToolbar`, Window › Quick Pen Toolbar; part of #2660). Headline numbers unchanged.
+- 2026-11-19: Quick Pen arc size with Ctrl+wheel: over the canvas, a touchpad scroll or a mouse wheel turned with Ctrl makes the arc size 15° larger or smaller per step, as `]` and `[` do, and the view stays put (`tool.quickPen.arcLarger`, `tool.quickPen.arcSmaller`; part of #2660). Headline numbers unchanged.
- 2026-11-19: Quick Pen editing: with no path being drawn, a drag on an anchor or a segment of a selected path moves it, a line staying a line and an arc an arc beside a moved corner anchor (at a smooth anchor the handles stay in line and the segments bend to meet); a click selects an anchor, Shift-click adds one, and the canvas context menu's Delete removes the selected anchors (`path.moveAnchors`, `edit.clear`; #2660). Headline numbers unchanged.
- 2026-10-31: Pattern libraries: Window › Swatch Libraries › Patterns and the Swatches panel's library menu open Geometric Patterns, a built-in library of eleven pattern swatches (dots, stripes, checks, a grid and shapes); clicking one adds its pattern and swatch to the document, once, and applies it to the active fill or stroke (`swatch.library.add`).
- 2026-11-11: Pattern libraries: Patterns › Grit Textures, a second built-in pattern library, holds eight seamless black textures (Fine Grain, Coarse Grit, Sand, Speckle, Stipple, Scratches, Sparse Flecks and Dense Flecks) on tiles of 18 to 36 pt, each drawn the same way every time; marks that reach past a tile edge continue on the next tile, so the tiles join without a seam (`swatch.library.add`). Scores and estimates unchanged.
- 2026-11-11: Pattern libraries: Patterns › Optical Effects, a third built-in pattern library, of VectorCraft's own designs, holds eight black wave, moiré and op-art tiles (Sine Bands, Ripple Lines, Interference Rings, Offset Rings, Warped Checks, Pinched Stripes, Chevron Pulse and Radiating Lenses) of 32 to 48 pt, each drawn the same way every time; each tile is one period of its design, and art that reaches past a tile edge continues on the next tile, so the tiles join without a seam (`swatch.library.add`). Scores and estimates unchanged.
- 2026-11-01: Find Nearest Swatch joins the Color Effects add-on (Object › Plug-ins › Color Effects): for each colour of the selection, the closest swatches of the document, a built-in library or a library or colour book the user loaded, with their CIEDE2000 difference; Apply gives each colour its nearest swatch as one undo step, linking global and spot swatches and adding a library's to the document first, so a process colour becomes the closest spot colour (`addon.color.nearestSwatch`, `addon.color.applyNearestSwatch`, #4923).
+- 2026-11-29: Randomize Fill Colors joins the Color Effects add-on (Object › Plug-ins › Color Effects): each selected filled path, compound path and live compound shape, inside groups and graph series too, gets a fill color of its own at random: any color, tints of a global or spot swatch, or grays between a minimum and a maximum percent, with a seed that repeats the result and Preview, as one undo step (`addon.color.randomFill`); art on a locked artboard keeps its fill (also when `ids` names it), except new art made there while it is still selected.
- 2026-11-01: Expand Dashes into Paths joins the Path Precision Tools add-on (Object › Plug-ins › Path Precision Tools): each selected path's dashed stroke becomes separate open paths, one per dash, laid out exactly as the stroke draws them (pattern, offset, Align Dashes to Corners and Path Ends), each keeping the stroke with the dashes off, so the gaps are real gaps for cutters and plotters, as one undo step (`addon.pathtools.expandDashes`, #4922).
- 2026-11-01: Randomize Opacity joins the Arrange Tools add-on (Object › Plug-ins › Arrange Tools): each selected object gets its own opacity at random between a minimum and a maximum percent, with a seed that repeats the result, as one undo step (`addon.arrange.randomizeOpacity`, #4925).
- 2026-11-01: Sort Objects joins the Arrange Tools add-on (Object › Plug-ins › Arrange Tools): the selected objects are sorted by width, height, area, position, opacity or stacking order (small to large, large to small or at random) and take another of those in that order, trading their values or stepping them evenly, as one undo step (`addon.arrange.sort`, #4917).
+- 2026-11-29: Mark Bounds of Each joins the Arrange Tools add-on (Object › Plug-ins › Arrange Tools): each selected object gets its own inward corner marks, or a rectangle, on its geometric or visual bounds, stroked in the color and weight given, stacked directly above it; clip groups are measured by their clipping path. A dialog with Preview, one undo step (`addon.arrange.markBounds`). A VectorCraft addition: headline numbers unchanged.
- 2026-11-29: Match Objects joins the Arrange Tools add-on (Object › Plug-ins › Arrange Tools): the other selected objects take the width, the height or both, the bounding-box angle and the stacking place of the key object, or of the top or the bottom selected object, about a reference point, with Preview, as one undo step (`addon.arrange.match`). A VectorCraft addition: headline numbers unchanged.
- 2026-11-29: Offset Objects joins the Arrange Tools add-on (Object › Plug-ins › Arrange Tools): the selected objects are chained one after another in a row or a column with a set gap (negative to overlap them), in stacking order or by position, either way; the first stays in place and the others move only along the row or column, as one undo step (`addon.arrange.offset`). A VectorCraft addition: headline numbers unchanged.
+- 2026-11-29: Group by Row joins the Arrange Tools add-on (Object › Plug-ins › Arrange Tools): the selected objects whose visual bounds overlap from top to bottom go into one group for each row (or, by column, from left to right), within their own layer or group and artboard, at the stacking place of their frontmost member; an object alone in its row stays as it is. One undo step, with a previewed dialog (`addon.arrange.groupRows`). A VectorCraft addition: headline numbers unchanged.
- 2026-11-15: Tangent Circle joins the Path Precision Tools add-on (Object › Plug-ins › Path Precision Tools): the circles that touch two selected paths or compound paths at a set radius, or three of them (up to eight for three circles), touching each outline without crossing it; circles, rotated ellipses and other paths alike. A dialog that previews every circle or one picked by number, the current paint, one undo step (`addon.pathtools.tangentCircle`). A VectorCraft addition: headline numbers unchanged.
- 2026-11-17: Add Bounding Rectangle and Add Bounding Circle join the Path Precision Tools add-on (Object › Plug-ins › Path Precision Tools): a live rectangle on the selection's geometric bounding box, or the smallest live circle that holds its outlines, around the whole selection or around each object, with the current paint and one undo step; the menu items open a dialog with Offset, One per Object and Preview (`addon.pathtools.boundingRectangle`, `addon.pathtools.boundingCircle`, #6966). A VectorCraft addition: headline numbers unchanged.
- 2026-11-22: Add Inscribed Circle joins the Path Precision Tools add-on (Object › Plug-ins › Path Precision Tools): the largest live circle inside each selected closed path or compound path, in the area it fills under its fill rule, with the current paint and one undo step (`addon.pathtools.inscribedCircle`, #6966). A VectorCraft addition: headline numbers unchanged.
@@ -179,6 +183,7 @@ Ranked; detail in [docs/roadmap.md](docs/roadmap.md) and [docs/gaps.md](docs/gap
- 2026-11-28: The Three-Point Arc tool joins an arc to the open paths whose ends its ends are placed on, with Join to Open Path Ends (Tool Options, or J while drawing; `shape.threePointArc` `join`), and in direction mode snaps the third point to where the arc carries an open path on, the same way or turned back (Snap Where the Arc Continues a Path, on by default). Headline numbers unchanged.
- 2026-11-15: Smooth Bridge joins the Path Precision Tools add-on (Object › Plug-ins › Path Precision Tools): two selected circles become one closed outline joined by two concave arcs that touch both circles, so every anchor is smooth; the arcs' radius is a percentage of the smaller circle's radius (1 to 1000%, 100% by default), and Keep Originals adds the outline above the circles instead of replacing them. A dialog with Preview, one undo step (`addon.pathtools.bridge`). A VectorCraft addition: headline numbers unchanged.
- 2026-11-18: Smooth Bridge also joins three or more circles: every two whose outlines are within Reach (10 pt by default) are joined, the bridges that connect become one shape each, and a circle bridged to no other stays as it is (at most 2000 circles); with Constant Gap the arcs' radius is the smaller circle's radius plus a gap (#8030). A VectorCraft addition: headline numbers unchanged.
+- 2026-12-01: Common Tangents and Smooth Bridge are one dialog, Common Tangents… (#10465): Connect tangents joins the two tangents of each kind into one closed shape, and with External, Straight or Curved picks between the tangent lines and Smooth Bridge's curved outline, with Radius, Constant Gap, Reach and Keep Originals; the Smooth Bridge… menu item is gone, and `addon.pathtools.bridge` still runs and opens the dialog with External and Curved (`connect` and `curved` on `addon.pathtools.commonTangents`). A VectorCraft addition: headline numbers unchanged.
- 2026-11-03: Text Tweaker, the first tool of the Type Tools add-on (Object › Plug-ins › Type Tools): one character attribute (size, baseline shift, rotation, horizontal or vertical scale, tracking, leading or stroke weight) goes letter by letter from a start value to an end value along a straight ramp, an ease, a bow, a spike or at random with a seed, set as the Character panel sets it, while the text stays live; a dialog with Preview, one undo step (`addon.type.textTweaker`, #4924). A VectorCraft addition: headline numbers unchanged.
- 2026-11-01: Group Overlapping Objects joins the Arrange Tools add-on (Object › Plug-ins › Arrange Tools): the selected objects whose visual bounds overlap or touch, chains included, go into one group each, within their own layer or group, at the stacking place of their frontmost member; objects that overlap nothing stay as they are. One undo step, a sweep along x so thousands of loose pieces group quickly (at most 20000 objects). A VectorCraft addition: headline numbers unchanged.
- 2026-10-31: Export for Screens works as the reference app's dialog: Artboards and Assets tabs with a grid or list of thumbnails, Clear Selection and Prefix, Create Sub-folders by Scale or Format (on by default), Export PDFs As Single File (the chosen artboards as one PDF's pages, `pdfs: "single"`) or Multiple Files, iOS and Android rows, format presets in a ☰ menu, and a count of the files the export writes (#4895). About 55 community PRs and fixes landed the same day: Find Font, Replace Font, Outline Stroke and Expand leave hidden and locked art alone (with a warning); DXF export writes LINE and ELLIPSE entities and outlines only the strokes a CAD line can't draw; Blob Brush Angle and Roundness; Shift-constrained Perspective Selection; Grid Repeat Options Preview; a gradient mesh from a file budgeted at about a million quads; width-profile strokes keep their shape zoomed out; `.ai`/EPS import fidelity (area type, envelopes, transparency in dictionaries, character styles); PDF import finds hyphenated and CMap-suffixed font names; Windows renders follow the process's core affinity; Enter or Escape in a floating panel's field no longer reaches the canvas (#4803); Properties shows Blend Options for any selected blend (#4817); Artwork Cleanup finds doubled type (#4835) and joins stacked lines into one object (Join Point Text, #4826). Headline numbers unchanged.
diff --git a/apps/vectorcraft-cli/Cargo.toml b/apps/vectorcraft-cli/Cargo.toml
index 376f431903..25cffe599e 100644
--- a/apps/vectorcraft-cli/Cargo.toml
+++ b/apps/vectorcraft-cli/Cargo.toml
@@ -48,3 +48,14 @@ objc2-core-text = { version = "0.3", default-features = false, features = ["std"
tempfile = "3"
vectorcraft-testkit = { workspace = true }
serde_json = { workspace = true }
+
+# The files of other crates that this crate compiles or its tests read, for CI's test selection.
+[package.metadata.craft]
+reads = [
+ "apps/vectorcraft/src/mac_fonts.rs",
+ "apps/vectorcraft/src/prefs_dir.rs",
+ "apps/vectorcraft/src/profile.rs",
+ "apps/vectorcraft/src/system_fonts.rs",
+ "apps/vectorcraft/src/windows_cores.rs",
+ "crates/plugins/tests/fixtures/desaturate.wasm",
+]
diff --git a/apps/vectorcraft-cli/src/perf.rs b/apps/vectorcraft-cli/src/perf.rs
index e533d00b73..e4d26a0b6a 100644
--- a/apps/vectorcraft-cli/src/perf.rs
+++ b/apps/vectorcraft-cli/src/perf.rs
@@ -629,6 +629,7 @@ mod tests {
/// On Windows `busy_cores` gives a number between 0 and the cores.
#[cfg(windows)]
+ // test-lint: allow never-run Windows only; CI runs tests on Linux and FreeBSD
#[test]
fn windows_reads_how_many_cores_are_busy() {
let cores = std::thread::available_parallelism().map_or(1, |c| c.get());
@@ -639,6 +640,7 @@ mod tests {
/// On Windows `rss_mb` gives this process's working set: more than 0 MB and less than
/// 10,000 MB.
#[cfg(windows)]
+ // test-lint: allow never-run Windows only; CI runs tests on Linux and FreeBSD
#[test]
fn windows_reads_the_working_set() {
let mb = rss_mb().map(|(mb, _)| mb);
@@ -654,8 +656,7 @@ mod tests {
let held = rss_mb();
drop(buffer);
let (Some((held, _)), Some((now, peak))) = (held, rss_mb()) else {
- eprintln!("no memory reading (Linux without `ps`): nothing to check");
- return;
+ panic!("rss_mb gave no memory reading");
};
assert!(peak.is_some_and(|peak| peak > held - 16.0), "holding 64 MB: {held:.1} MB, after freeing it: {now:.1} MB, peak {peak:?}");
}
diff --git a/apps/vectorcraft-web/Cargo.toml b/apps/vectorcraft-web/Cargo.toml
index ce4d1d3d44..70aae32f73 100644
--- a/apps/vectorcraft-web/Cargo.toml
+++ b/apps/vectorcraft-web/Cargo.toml
@@ -28,7 +28,7 @@ egui_extras = { workspace = true }
# `wgpu` pulls egui-wgpu's defaults: WebGPU plus the WebGL2 fallback.
eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit"] }
# The page command API (storytold/craft-libs#413): the request plumbing behind window.vectorcraft.
-craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735", version = "0.1.0" }
+craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6", version = "0.1.0" }
wasm-bindgen = "0.2"
serde_json = { workspace = true }
diff --git a/apps/vectorcraft/Cargo.toml b/apps/vectorcraft/Cargo.toml
index d17c96eaf7..3ec7da1b75 100644
--- a/apps/vectorcraft/Cargo.toml
+++ b/apps/vectorcraft/Cargo.toml
@@ -22,6 +22,7 @@ vectorcraft-text = { workspace = true }
# frame policy and placement store (so VectorCraft matches the rest on Linux, see #217), printing and
# the update client.
craft = { workspace = true, features = ["ui", "ui-app", "settings", "automation", "platform", "window", "dialogs", "print", "update"] }
+craft-nightly = { workspace = true }
eframe = { workspace = true, features = ["clipboard", "default_fonts", "wayland", "x11"] }
egui = { workspace = true }
egui_extras = { workspace = true }
diff --git a/apps/vectorcraft/src/app.rs b/apps/vectorcraft/src/app.rs
index b91282e7da..2715e08125 100644
--- a/apps/vectorcraft/src/app.rs
+++ b/apps/vectorcraft/src/app.rs
@@ -1,4 +1,4 @@
-#[cfg(all(target_os = "macos", feature = "accessibility", feature = "wgpu"))]
+#[cfg(feature = "wgpu")]
use super::gpu;
use super::nightly_session;
use super::prefs::{flush, save_tick};
@@ -44,7 +44,7 @@ impl eframe::App for App {
if let Some(window_frame) = self.window_frame.as_mut() {
window_frame();
}
- // The characters Alt + keypad codes typed (#5108).
+ // The keypad digits of Alt + keypad codes leave the frame (#5108).
#[cfg(windows)]
super::windows_alt_codes::raw_input_hook(raw);
// Symbol-font characters a keyboard tool typed (NHM Writer legacy Tamil).
@@ -107,7 +107,7 @@ impl eframe::App for App {
// Plug-ins still loading end before the launch marker does (the macOS exit below skips
// dropping the app).
self.app.session.cancel_plugin_loads();
- end_before_teardown(self.frames);
+ end_before_teardown(self.frames, self.graphics_loss.happened());
}
}
@@ -202,16 +202,58 @@ impl App {
/// its own class, which AppKit's Touch Bar support was observing it under, and AppKit aborts the
/// app as it quits on Macs with a Touch Bar. On a normal quit, only the launch marker is needed
/// after the window, so it is ended here as `main` ends it after the window on other platforms.
+/// On every platform, the process also ends here when the window's graphics device was lost
+/// (`device_lost`, #6374). A frame the lost device could not present stays acquired, and releasing
+/// the window's surface as eframe tears it down then panics in wgpu (gfx-rs/wgpu#9277).
/// Not while the window is still starting up (`frames` below [`gpu::STARTUP_FRAMES`]): a graphics
/// failure then starts the app again on another adapter (#651).
-#[allow(unused_variables)]
-fn end_before_teardown(frames: u64) {
- #[cfg(all(target_os = "macos", feature = "accessibility", feature = "wgpu"))]
- if frames >= gpu::STARTUP_FRAMES {
- safe_mode::end_launch();
- log::info!("quitting");
- log::logger().flush();
- std::process::exit(0);
+fn end_before_teardown(frames: u64, device_lost: bool) {
+ if !ends_before_teardown(frames, device_lost) {
+ return;
+ }
+ if device_lost {
+ log::info!("the graphics device was lost: quitting before the window's graphics are torn down");
+ }
+ // `main` does these after the window, which this exit skips.
+ #[cfg(not(target_os = "macos"))]
+ single_instance::resign();
+ safe_mode::end_launch();
+ log::info!("quitting");
+ log::logger().flush();
+ std::process::exit(0);
+}
+
+/// Whether [`end_before_teardown`] ends the process: after the window's start-up, on macOS with
+/// accessibility, or once the graphics device was lost.
+#[cfg(feature = "wgpu")]
+fn ends_before_teardown(frames: u64, device_lost: bool) -> bool {
+ frames >= gpu::STARTUP_FRAMES && (device_lost || cfg!(all(target_os = "macos", feature = "accessibility")))
+}
+
+/// Without wgpu there is no device-lost report, and the window is torn down as usual.
+#[cfg(not(feature = "wgpu"))]
+fn ends_before_teardown(_frames: u64, _device_lost: bool) -> bool {
+ false
+}
+
+#[cfg(all(test, feature = "wgpu"))]
+mod tests {
+ use vectorcraft_ui_egui::graphics::GraphicsLoss;
+
+ use super::*;
+
+ /// A device lost while the app runs ends the process before eframe releases the window's
+ /// surface, on every platform; before the window has started, the start-up restart takes over.
+ #[test]
+ fn a_lost_graphics_device_ends_the_process_before_teardown() {
+ let always = cfg!(all(target_os = "macos", feature = "accessibility"));
+ let (loss, ctx) = (GraphicsLoss::default(), egui::Context::default());
+ assert_eq!(ends_before_teardown(gpu::STARTUP_FRAMES, loss.happened()), always, "no loss: the usual teardown");
+ let (l, c) = (loss.clone(), ctx.clone());
+ std::thread::spawn(move || l.report(&c, "Unknown: Device is lost")).join().unwrap();
+ assert!(loss.take().is_some(), "a frame handles the report");
+ assert!(ends_before_teardown(gpu::STARTUP_FRAMES, loss.happened()), "after a loss the window is not torn down");
+ assert!(!ends_before_teardown(gpu::STARTUP_FRAMES - 1, loss.happened()), "during start-up the adapter restart runs");
}
}
diff --git a/apps/vectorcraft/src/build_flavor.rs b/apps/vectorcraft/src/build_flavor.rs
index 9450a48972..93876b5cce 100644
--- a/apps/vectorcraft/src/build_flavor.rs
+++ b/apps/vectorcraft/src/build_flavor.rs
@@ -1,30 +1,13 @@
//! Build-time channel is distinct from a launch selector. A runtime environment cannot promote a
-//! stable build, and a nightly build refuses to start without its profile.
-use crate::launch_profile::Profile;
-use std::ffi::OsString;
+//! stable build, and a nightly build self-isolates into its canonical nightly profile root (or the
+//! profile root supplied by ArtCraft Launcher).
-#[derive(Clone, Copy, Debug, PartialEq, Eq)]
-pub enum BuildFlavor {
- Stable,
- NightlyV1,
-}
+pub use craft_nightly::BuildFlavor;
pub const COMPILED: BuildFlavor = if cfg!(vectorcraft_nightly_v1) { BuildFlavor::NightlyV1 } else { BuildFlavor::Stable };
-pub fn require_profile(flavor: BuildFlavor, profile: &Profile) -> Result<(), String> {
- match (flavor, profile.is_nightly()) {
- (BuildFlavor::NightlyV1, false) => Err("Open VectorCraft Nightly from ArtCraft Launcher".to_string()),
- (BuildFlavor::Stable, true) => Err("This is a stable VectorCraft build; nightly-v1 requires the nightly build".to_string()),
- _ => Ok(()),
- }
-}
-
-pub fn needs_native_error(flavor: BuildFlavor, desktop_session: bool) -> bool {
- desktop_session && flavor == BuildFlavor::NightlyV1
-}
-
-/// `--version` and `-V` on their own, before any other argument is read.
-pub fn version_query(args: &[OsString]) -> bool {
+/// An exact plain version query, before resolving any profile or environment paths.
+pub fn version_query(args: &[std::ffi::OsString]) -> bool {
matches!(args, [arg] if arg == "--version" || arg == "-V")
}
@@ -37,40 +20,19 @@ pub fn version(flavor: BuildFlavor, stable: &str) -> String {
#[cfg(test)]
mod tests {
- use super::*;
+ use super::{BuildFlavor, version, version_query};
#[test]
- fn only_a_nightly_desktop_refusal_requests_a_native_dialog() {
- assert!(needs_native_error(BuildFlavor::NightlyV1, true));
- assert!(!needs_native_error(BuildFlavor::NightlyV1, false));
- assert!(!needs_native_error(BuildFlavor::Stable, true));
- assert!(!needs_native_error(BuildFlavor::Stable, false));
- }
-
- #[test]
- fn nightly_build_without_a_profile_is_refused_before_startup() {
- let started = std::cell::Cell::new(false);
- let result = require_profile(BuildFlavor::NightlyV1, &Profile::Stable).map(|()| started.set(true));
- assert!(result.unwrap_err().contains("ArtCraft Launcher"));
- assert!(!started.get());
- }
-
- #[test]
- fn stable_and_nightly_flavors_accept_only_their_own_profile() {
- let nightly = Profile::NightlyV1(std::path::PathBuf::from("already validated root"));
- assert!(require_profile(BuildFlavor::Stable, &Profile::Stable).is_ok());
- assert!(require_profile(BuildFlavor::Stable, &nightly).is_err());
- assert!(require_profile(BuildFlavor::NightlyV1, &nightly).is_ok());
- assert!(require_profile(BuildFlavor::NightlyV1, &Profile::Stable).is_err());
- }
-
- #[test]
- fn nightly_version_query_is_unambiguous_and_never_reinterprets_file_arguments() {
- assert_eq!(version(BuildFlavor::Stable, "0.24.1"), "0.24.1");
- assert_eq!(version(BuildFlavor::NightlyV1, "0.24.1"), "0.24.1 (nightly-v1)");
+ fn plain_version_query_is_exact() {
assert!(version_query(&["--version".into()]));
assert!(version_query(&["-V".into()]));
assert!(!version_query(&["--".into(), "--version".into()]));
assert!(!version_query(&[]));
}
+
+ #[test]
+ fn version_labels_nightly_without_changing_stable() {
+ assert_eq!(version(BuildFlavor::Stable, "0.24.1"), "0.24.1");
+ assert_eq!(version(BuildFlavor::NightlyV1, "0.24.1"), "0.24.1 (nightly-v1)");
+ }
}
diff --git a/apps/vectorcraft/src/gpu.rs b/apps/vectorcraft/src/gpu.rs
index 198e7dcc85..f71cc434ba 100644
--- a/apps/vectorcraft/src/gpu.rs
+++ b/apps/vectorcraft/src/gpu.rs
@@ -32,6 +32,12 @@
//! that adapter, as the next one in the order would be tried. Each restart leaves out one more
//! adapter, so it ends when none is left.
//!
+//! When no adapter is picked at all, because none is left or no graphics backend started (wgpu
+//! needs Vulkan, OpenGL 3.3 or OpenGL ES 3.0, and the driver of Intel's Ironlake graphics offers
+//! none of them, so the window's surface failed "for any enabled backend" with no backend listed,
+//! #2654), Linux and the BSDs start once more on Mesa's software renderer ([`Software`]); after
+//! that, the error that ends the app says what the graphics driver needs.
+//!
//! An adapter can also hang instead of failing: on a hybrid laptop with High Performance chosen,
//! the discrete GPU never put the window's first frame on the screen, with no error and no panic,
//! and the app stayed in the background without a window (#964). [`watch_first_frame`] gives the
@@ -853,7 +859,7 @@ pub fn watch_first_frame(startup: Arc) {
// The new app records its own start.
startup.ended();
skip.push(failed.to_string());
- match restart(&skip.join(",")) {
+ match restart(&skip.join(","), false) {
Ok(()) => std::process::exit(0),
Err(e) => {
log::error!("starting again failed: {e}");
@@ -950,6 +956,94 @@ fn restart_without<'a>(graphics_failed: bool, frames: u64, picked: Option<&'a st
picked.filter(|p| graphics_failed && frames < STARTUP_FRAMES && !skip.iter().any(|s| s == p))
}
+/// Whether a start whose window no graphics adapter could show may start again on Mesa's software
+/// renderer, which draws OpenGL on the CPU (llvmpipe).
+#[derive(Clone, Copy, Debug, PartialEq, Eq)]
+pub enum Software {
+ /// Linux and the BSDs, where Mesa provides OpenGL, and this start isn't on it yet.
+ Possible,
+ /// This start already draws on it: the app started again with [`SOFTWARE_ENV`], or the user
+ /// set `LIBGL_ALWAYS_SOFTWARE`.
+ Tried,
+ /// Windows and macOS, or a start that `WGPU_BACKEND` or `WGPU_ADAPTER_NAME` chooses.
+ Unavailable,
+}
+
+impl Software {
+ /// This start's [`Software`], from the platform and the environment.
+ pub fn from_env() -> Self {
+ if cfg!(any(windows, target_os = "macos")) || explicit_choice() {
+ Software::Unavailable
+ } else if software_start() || std::env::var_os("LIBGL_ALWAYS_SOFTWARE").is_some() {
+ Software::Tried
+ } else {
+ Software::Possible
+ }
+ }
+}
+
+/// Set by the app when it starts again on Mesa's software renderer because no graphics adapter
+/// could show the window (#2654).
+pub const SOFTWARE_ENV: &str = "VECTORCRAFT_GPU_SOFTWARE";
+
+/// Whether this start is the one the app made on Mesa's software renderer ([`SOFTWARE_ENV`]).
+pub fn software_start() -> bool {
+ std::env::var_os(SOFTWARE_ENV).is_some()
+}
+
+/// The graphics APIs the window can draw with on this platform, for the error that ends the app
+/// when no adapter can show it and for the note of a start on Mesa's software renderer.
+pub const NEEDS: &str = if cfg!(windows) {
+ "Direct3D 12, OpenGL 3.3 or OpenGL ES 3.0"
+} else if cfg!(target_os = "macos") {
+ "Metal"
+} else {
+ "Vulkan, OpenGL 3.3 or OpenGL ES 3.0"
+};
+
+/// What follows the window's run ([`next`]).
+#[derive(Debug, PartialEq, Eq)]
+enum Next {
+ /// The window closed normally.
+ Done,
+ /// Start again without the adapters in `skip`, on Mesa's software renderer when `software`.
+ Restart { skip: Vec, software: bool },
+ /// End the app with this error.
+ Stop(String),
+}
+
+/// What follows the window's run: `why` it failed (`None` when it closed normally), whether the
+/// graphics failed, the `frames` the UI ran, the adapter `picked`, those left out (`skip`) and
+/// whether the software renderer is still to try. A failure on an adapter while starting up starts
+/// again without it. When no adapter was picked, because none can show the window or no graphics
+/// backend started at all (an old GPU whose driver offers neither Vulkan nor OpenGL 3.3 or OpenGL
+/// ES 3.0, such as Intel's Ironlake graphics, #2654), Linux and the BSDs start once more on Mesa's
+/// software renderer, and after that the error says what the window needs.
+fn next(why: Option, graphics_failed: bool, frames: u64, picked: Option<&str>, mut skip: Vec, software: Software) -> Next {
+ let Some(why) = why else { return Next::Done };
+ if let Some(failed) = restart_without(graphics_failed, frames, picked, &skip) {
+ log::error!("the window failed on graphics adapter {failed} ({why}): starting again without it");
+ skip.push(failed.to_string());
+ return Next::Restart { skip, software: false };
+ }
+ if !graphics_failed {
+ return Next::Stop(why);
+ }
+ if picked.is_some() || frames >= STARTUP_FRAMES {
+ return Next::Stop(format!("{why} ({HELP})"));
+ }
+ match software {
+ Software::Possible => {
+ log::error!("no graphics adapter could show the window ({why}): starting again on Mesa's software renderer, which draws on the CPU");
+ Next::Restart { skip, software: true }
+ }
+ Software::Tried => Next::Stop(format!(
+ "{why}: no graphics adapter could show the window, not even Mesa's software renderer (the graphics driver needs {NEEDS}; {HELP})"
+ )),
+ Software::Unavailable => Next::Stop(format!("{why}: no graphics adapter could show the window (the graphics driver needs {NEEDS}; {HELP})")),
+ }
+}
+
/// After the window's run: `Ok` when it closed normally or the app started again (see the module
/// docs), otherwise why it failed. `outcome` is eframe's result, or the message of a panic that
/// ended it.
@@ -957,28 +1051,35 @@ pub fn finish(outcome: Result, startup: &Startup) -> Res
// Whatever follows, this start didn't crash; a new app records its own start.
startup.ended();
let (why, graphics_failed) = match outcome {
- Ok(Ok(())) => return Ok(()),
- Ok(Err(e @ eframe::Error::Wgpu(_))) => (e.to_string(), true),
- Ok(Err(e)) => (e.to_string(), false),
- Err(panic) => (panic, GRAPHICS_PANIC.load(Ordering::Relaxed)),
+ Ok(Ok(())) => (None, false),
+ Ok(Err(e @ eframe::Error::Wgpu(_))) => (Some(e.to_string()), true),
+ Ok(Err(e)) => (Some(e.to_string()), false),
+ Err(panic) => (Some(panic), GRAPHICS_PANIC.load(Ordering::Relaxed)),
};
let frames = startup.ui.get().map_or(0, egui::Context::cumulative_frame_nr);
- let mut skip = skipped();
- let Some(failed) = restart_without(graphics_failed, frames, startup.adapter.get().map(String::as_str), &skip) else {
- return Err(if graphics_failed { format!("{why} ({HELP})") } else { why });
- };
- log::error!("the window failed on graphics adapter {failed} ({why}): starting again without it");
- skip.push(failed.to_string());
- restart(&skip.join(",")).map_err(|e| format!("{why}; starting again failed: {e}"))
+ let picked = startup.adapter.get().map(String::as_str);
+ match next(why.clone(), graphics_failed, frames, picked, skipped(), Software::from_env()) {
+ Next::Done => Ok(()),
+ Next::Stop(e) => Err(e),
+ Next::Restart { skip, software } => {
+ let why = why.unwrap_or_default();
+ restart(&skip.join(","), software).map_err(|e| format!("{why}; starting again failed: {e}"))
+ }
+ }
}
-/// Start the app again with the same arguments, leaving out the adapters in `skip`. On Unix the
-/// new app replaces this process (same process id, so an AppImage keeps its files mounted), and
-/// this returns only on failure; on Windows it starts beside this one, which then exits.
-fn restart(skip: &str) -> std::io::Result<()> {
+/// Start the app again with the same arguments, leaving out the adapters in `skip`, and on Mesa's
+/// software renderer when `software` (`LIBGL_ALWAYS_SOFTWARE`, with [`SOFTWARE_ENV`] so it is
+/// tried once). On Unix the new app replaces this process (same process id, so an AppImage keeps
+/// its files mounted), and this returns only on failure; on Windows it starts beside this one,
+/// which then exits.
+fn restart(skip: &str, software: bool) -> std::io::Result<()> {
log::logger().flush();
let mut c = std::process::Command::new(std::env::current_exe()?);
c.args(std::env::args_os().skip(1)).env(SKIP_ENV, skip);
+ if software {
+ c.env("LIBGL_ALWAYS_SOFTWARE", "1").env(SOFTWARE_ENV, "1");
+ }
#[cfg(unix)]
{
use std::os::unix::process::CommandExt as _;
diff --git a/apps/vectorcraft/src/gpu/tests.rs b/apps/vectorcraft/src/gpu/tests.rs
index 792518993d..118a78006c 100644
--- a/apps/vectorcraft/src/gpu/tests.rs
+++ b/apps/vectorcraft/src/gpu/tests.rs
@@ -553,10 +553,9 @@ fn the_saved_engine_preference_is_found() {
let saved = prefs.to_json();
assert_eq!(power_preference(saved.get("gpuPreference").and_then(serde_json::Value::as_str), None), power);
}
- // Every choice Preferences offer means something here.
- for (value, _) in vectorcraft_engine::cmd::prefscmds::GPU_PREFERENCES {
- assert!(["automatic", "lowPower", "highPerformance"].contains(value), "{value}");
- }
+ // Preferences offer the three choices read above, and no other.
+ let offered: Vec<&str> = vectorcraft_engine::cmd::prefscmds::GPU_PREFERENCES.iter().map(|(value, _)| *value).collect();
+ assert_eq!(offered, ["automatic", "lowPower", "highPerformance"]);
}
#[test]
@@ -602,15 +601,52 @@ fn only_a_graphics_failure_while_starting_up_restarts_without_the_adapter() {
fn a_normal_exit_or_another_failure_does_not_restart() {
let startup = Startup::default();
assert_eq!(finish(Ok(Ok(())), &startup), Ok(()));
- // No adapter was picked (none can show the window): the error is returned, nothing restarts.
- let none = eframe::Error::Wgpu(eframe::egui_wgpu::WgpuError::CustomNativeAdapterSelectionError("no graphics adapter can show the window".into()));
- assert_eq!(
- finish(Ok(Err(none)), &startup),
- Err(format!("WGPU error: Adapter selection failed: no graphics adapter can show the window ({HELP})"))
- );
let _ = startup.adapter.set("Vulkan:1002:164e".into());
GRAPHICS_PANIC.store(false, Ordering::Relaxed);
assert_eq!(finish(Err("a bug".into()), &startup), Err("a bug".into()));
+ // The same, decided without starting anything.
+ let amd = Some("Vulkan:1002:164e");
+ for software in [Software::Possible, Software::Tried, Software::Unavailable] {
+ assert_eq!(next(None, false, 0, amd, vec![], software), Next::Done);
+ assert_eq!(next(Some("a bug".into()), false, 0, None, vec![], software), Next::Stop("a bug".into()));
+ // A failure after start-up, or on an adapter already left out, is not the start's.
+ assert_eq!(next(Some("lost".into()), true, STARTUP_FRAMES, amd, vec![], software), Next::Stop(format!("lost ({HELP})")));
+ let skip = vec!["Vulkan:1002:164e".to_string()];
+ assert_eq!(next(Some("lost".into()), true, 0, amd, skip, software), Next::Stop(format!("lost ({HELP})")));
+ }
+ // An adapter that failed while starting up is left out, never with the software renderer.
+ assert_eq!(
+ next(Some("lost".into()), true, 0, amd, vec!["Gl:8086:0046".into()], Software::Possible),
+ Next::Restart { skip: vec!["Gl:8086:0046".into(), "Vulkan:1002:164e".into()], software: false }
+ );
+}
+
+/// #2654: on a ThinkPad T510 with Intel's Ironlake graphics, whose driver offers neither Vulkan
+/// nor OpenGL 3.3 or OpenGL ES 3.0, wgpu started no backend, so the window's surface failed before
+/// any adapter was listed and the app ended; started with `LIBGL_ALWAYS_SOFTWARE=1`, it ran on
+/// llvmpipe. With no adapter picked, Linux starts once more on Mesa's software renderer, keeping
+/// the adapters already left out, and the error after that says what the driver needs.
+#[test]
+fn a_start_no_adapter_can_show_tries_the_software_renderer_once() {
+ let surface = "WGPU error: Failed to create surface for any enabled backend: {}";
+ let skip = vec!["Vulkan:8086:0046".to_string()];
+ assert_eq!(next(Some(surface.into()), true, 0, None, skip.clone(), Software::Possible), Next::Restart { skip: skip.clone(), software: true });
+ // No adapter left that can show the window, after restarts without each.
+ let none = "WGPU error: Adapter selection failed: no graphics adapter can show the window";
+ assert_eq!(next(Some(none.into()), true, 0, None, skip.clone(), Software::Possible), Next::Restart { skip: skip.clone(), software: true });
+ // Already on the software renderer: the app ends, saying what the window needs.
+ let Next::Stop(tried) = next(Some(surface.into()), true, 0, None, skip.clone(), Software::Tried) else {
+ panic!("a start already on the software renderer starts again")
+ };
+ assert!(tried.starts_with(surface), "{tried}");
+ assert!(tried.contains("not even Mesa's software renderer") && tried.contains(NEEDS) && tried.contains(HELP), "{tried}");
+ // Windows, macOS or a backend the user chose: no software renderer to start on.
+ let Next::Stop(unavailable) = next(Some(surface.into()), true, 0, None, skip, Software::Unavailable) else {
+ panic!("a start without the software renderer starts again")
+ };
+ assert!(unavailable.contains(NEEDS) && unavailable.contains(HELP) && !unavailable.contains("Mesa"), "{unavailable}");
+ // A failure outside the graphics never starts again.
+ assert_eq!(next(Some("a bug".into()), false, 0, None, vec![], Software::Possible), Next::Stop("a bug".into()));
}
/// A log folder of its own for each test.
diff --git a/apps/vectorcraft/src/hang_watch.rs b/apps/vectorcraft/src/hang_watch.rs
index 5714b8c548..5039c89bd1 100644
--- a/apps/vectorcraft/src/hang_watch.rs
+++ b/apps/vectorcraft/src/hang_watch.rs
@@ -3,8 +3,8 @@
//! mark for [`STALL`] while inside a stage of its frame, the thread writes what the app knows to the
//! log (`logs/vectorcraft.log`) and to `logs/hang-report-.txt`: the stage, a clipboard
//! call in progress, the last commands, the last frames' times, the platform, the window system, the
-//! graphics processor and the present mode the app asked for, and how long the session has run with
-//! how many documents open. The process holds a lock on the file until the interface thread answers
+//! graphics processor, its driver when known, and the present mode the app asked for, and how long
+//! the session has run with how many documents open. The process holds a lock on the file until the interface thread answers
//! again; then the log says after how long and the file is removed. A file nobody holds at a later
//! launch was left by a session that was closed while it did not answer, and a locked one belongs to
//! another instance that is stalled now and is left alone. That launch writes the report to the log,
@@ -113,6 +113,8 @@ pub struct Facts {
pub flatpak: bool,
/// The graphics processor the window draws with.
pub graphics: Option,
+ /// The active graphics driver's identity, when the backend reports it.
+ graphics_driver: Option,
/// The present mode and frame queue the app asked the window surface for.
pub surface: String,
}
@@ -128,14 +130,29 @@ impl Facts {
session_type: value("XDG_SESSION_TYPE"),
flatpak: flatpak_info || env("FLATPAK_ID").is_some_and(|v| !v.is_empty()),
graphics,
+ graphics_driver: None,
surface,
}
}
+ #[cfg(any(feature = "wgpu", test))]
+ pub fn with_graphics_driver(mut self, driver: &str, info: &str) -> Facts {
+ // D3D12 reports 0.0.0.0 when the driver version could not be read.
+ let mut fields = [driver, info].map(clean).into_iter().filter(|value| !value.is_empty() && value != "0.0.0.0");
+ self.graphics_driver = fields.next().map(|mut detail| {
+ if let Some(info) = fields.next().filter(|info| info != &detail) {
+ detail.push_str(" / ");
+ detail.push_str(&info);
+ }
+ detail
+ });
+ self
+ }
+
/// The facts as report lines.
pub fn lines(&self) -> String {
let or_unknown = |v: &Option| v.clone().unwrap_or_else(|| "unknown".to_string());
- format!(
+ let mut lines = format!(
"VectorCraft {} on {} {}\nWindow system: {}; desktop: {}; session type: {}; Flatpak: {}\nGraphics: {}; {}\n",
vectorcraft_ui_egui::os_window::version(),
std::env::consts::OS,
@@ -146,7 +163,13 @@ impl Facts {
if self.flatpak { "yes" } else { "no" },
or_unknown(&self.graphics),
self.surface,
- )
+ );
+ if let Some(driver) = &self.graphics_driver {
+ lines.push_str("Graphics driver: ");
+ lines.push_str(driver);
+ lines.push('\n');
+ }
+ lines
}
}
diff --git a/apps/vectorcraft/src/hang_watch/tests.rs b/apps/vectorcraft/src/hang_watch/tests.rs
index 7452d41502..608d6e9b78 100644
--- a/apps/vectorcraft/src/hang_watch/tests.rs
+++ b/apps/vectorcraft/src/hang_watch/tests.rs
@@ -279,3 +279,22 @@ fn troubleshooting_info_holds_both_sessions_reports() {
assert!(text.contains("(it was closed while it did not answer):\nVectorCraft hang report, last session\n"));
assert!(text.contains("Recent commands, oldest first: none"));
}
+
+#[test]
+fn troubleshooting_info_distinguishes_drivers_on_the_same_adapter() {
+ let mut shared = shared(None);
+ let beacon = Beacon::new();
+ for (driver, info, expected) in [
+ (" 32.0.16.1088 ", "", Some("32.0.16.1088")),
+ ("32.0.16.2124", "", Some("32.0.16.2124")),
+ ("Mesa\nRADV", "Mesa 25.2", Some("MesaRADV / Mesa 25.2")),
+ ("Mesa", "Mesa", Some("Mesa")),
+ ("0.0.0.0", "", None),
+ ("", "", None),
+ ] {
+ shared.facts = facts().with_graphics_driver(driver, info);
+ let text = troubleshooting(&shared, &beacon, UNIX_EPOCH);
+ assert!(text.contains("Graphics: Test GPU"), "the adapter description is still in the report");
+ assert_eq!(text.lines().find_map(|line| line.strip_prefix("Graphics driver: ")), expected);
+ }
+}
diff --git a/apps/vectorcraft/src/host_services.rs b/apps/vectorcraft/src/host_services.rs
index 47813f192e..9e416d7711 100644
--- a/apps/vectorcraft/src/host_services.rs
+++ b/apps/vectorcraft/src/host_services.rs
@@ -188,7 +188,7 @@ pub(crate) fn services(window: Parent) -> Services {
check_application: Some(Box::new(|p| check_app(std::path::Path::new(p)))),
open_in_application: Some(Box::new(open_in_application)),
// File → Print: the system's printers and print queue.
- print: Some(Box::new(printing::SystemPrint)),
+ print: Some(Box::new(printing::SystemPrint::default())),
// The tablet driver's Wintab context, which reads an airbrush pen's finger wheel, opens
// only while the active tool uses the wheel.
#[cfg(all(windows, not(target_vendor = "win7")))]
diff --git a/apps/vectorcraft/src/launch_profile.rs b/apps/vectorcraft/src/launch_profile.rs
index 12615dd81d..d986f28d71 100644
--- a/apps/vectorcraft/src/launch_profile.rs
+++ b/apps/vectorcraft/src/launch_profile.rs
@@ -1,130 +1,28 @@
-//! Launcher-owned nightly-v1 bootstrap. Selected before logging, updates, fonts or saved state.
-//! Stable launches retain their original arguments and directory policy.
-//!
-//! The protocol is `vectorcraft --launch-profile nightly-v1 --profile-root -- [files…]`: the
-//! selector and the root are separate tokens, exactly once each, and everything after `--` is a file
-//! even when it looks like one of them. The Launcher's version check
-//! (`… --version`) is answered before the root is validated or touched.
+//! Nightly-v1 bootstrap backed by [`craft_nightly`]. Selected before logging, updates, fonts or
+//! saved state. Stable launches retain their original arguments and directory policy; direct
+//! nightly launches self-isolate into [`craft_nightly::canonical_profile_root`], while ArtCraft
+//! Launcher can supply `--launch-profile nightly-v1 --profile-root -- [args…]`.
use std::ffi::OsString;
-use std::path::{Component, Path, PathBuf};
-use std::sync::OnceLock;
-pub const VERSION: &str = "nightly-v1";
+pub use craft_nightly::NIGHTLY_V1_CONTRACT as VERSION;
+use craft_nightly::{BuildFlavor, Launch, Profile, ProfileError, StartupOptions};
-#[derive(Clone, Debug, PartialEq, Eq)]
-pub enum Profile {
- Stable,
- NightlyV1(PathBuf),
-}
-
-impl Profile {
- pub fn is_nightly(&self) -> bool {
- matches!(self, Self::NightlyV1(_))
- }
-
- pub fn root(&self) -> Option<&Path> {
- match self {
- Self::Stable => None,
- Self::NightlyV1(root) => Some(root),
- }
- }
-}
-
-#[derive(Debug, PartialEq, Eq)]
-pub struct Launch {
- pub profile: Profile,
- pub args: Vec,
-}
-
-static PROFILE: OnceLock = OnceLock::new();
+static STABLE: Profile = Profile::Stable;
pub fn current() -> &'static Profile {
- PROFILE.get().unwrap_or(&Profile::Stable)
+ craft_nightly::current().unwrap_or(&STABLE)
}
-pub fn install(profile: Profile) -> Result<(), String> {
- PROFILE.set(profile).map_err(|_| "the launch profile was already selected".to_string())
-}
-
-/// Recognize only the agreed literal selector/root pair before `--`. No filesystem or startup hook
-/// runs here.
-pub fn parse(args: Vec) -> Result {
- let mut selector = None;
- let mut root = None;
- let mut other = Vec::new();
- let mut files = Vec::new();
- let mut iter = args.iter();
- let mut delimiter = false;
- while let Some(arg) = iter.next() {
- if arg == "--" {
- delimiter = true;
- files.extend(iter.cloned());
- break;
- }
- if arg == "--launch-profile" || arg == "--profile-root" {
- let slot = if arg == "--launch-profile" { &mut selector } else { &mut root };
- if slot.is_some() {
- return Err("the profile selector and root must each occur exactly once".to_string());
- }
- let value = iter.next().filter(|v| !v.is_empty()).ok_or_else(|| "the profile selector/root needs a value".to_string())?;
- if value.to_string_lossy().starts_with("--") {
- return Err("the profile selector/root needs a value".to_string());
- }
- *slot = Some(value.clone());
- } else if arg.to_string_lossy().starts_with("--launch-profile=") || arg.to_string_lossy().starts_with("--profile-root=") {
- return Err("the nightly protocol requires separate literal selector/root argument tokens".to_string());
- } else {
- other.push(arg.clone());
- }
- }
- match (selector, root) {
- (None, None) => Ok(Launch { profile: Profile::Stable, args }),
- (Some(version), Some(root)) if version == VERSION => {
- if !delimiter || !other.is_empty() {
- return Err("nightly-v1 accepts only its selector/root followed by -- and file names".to_string());
- }
- let root = PathBuf::from(root);
- if !root.is_absolute() || root.components().any(|c| matches!(c, Component::ParentDir)) {
- return Err("the nightly profile root must be absolute and contain no parent traversal".to_string());
- }
- Ok(Launch { profile: Profile::NightlyV1(root), args: std::iter::once(OsString::from("--")).chain(files).collect() })
- }
- (Some(_), Some(_)) => Err("unsupported launch profile (expected nightly-v1)".to_string()),
- _ => Err("--launch-profile and --profile-root must be supplied together".to_string()),
- }
-}
-
-/// The Launcher's version check: the selector/root pair followed by exactly `--version` (or `-V`),
-/// answered like a plain version query. Only [`parse`]'s lexical checks apply; the root is never
-/// validated or touched, and `-- --version` stays a file name.
-pub fn version_query(args: &[OsString]) -> bool {
- let Some((last, pair)) = args.split_last() else { return false };
- if last != "--version" && last != "-V" {
- return false;
- }
- let lexical = pair.iter().cloned().chain(std::iter::once(OsString::from("--"))).collect();
- matches!(parse(lexical), Ok(Launch { profile: Profile::NightlyV1(_), args }) if args.len() == 1)
-}
-
-/// Validation finishes before the caller's first startup effect. Stable never calls the nightly root
-/// validator, so its portable and config resolution stays unchanged.
-pub fn prepare(mut launch: Launch, validate: impl FnOnce(&Path) -> Result) -> Result {
- if let Profile::NightlyV1(root) = &launch.profile {
- launch.profile = Profile::NightlyV1(validate(root)?);
- }
- Ok(launch)
-}
-
-/// Resolve the selected private root before the caller's first startup effect.
-pub fn validate_root(root: &Path, env: impl Fn(&str) -> Option, exe: Option<&Path>) -> Result {
- crate::profile_root::validate(root, env, exe, crate::prefs_dir::profile::ensure_writable)
+pub fn prepare_launch(flavor: BuildFlavor, args: impl IntoIterator) -> Result {
+ let spec = crate::profile_root::app_profile_spec();
+ craft_nightly::prepare_launch(flavor, &spec, args, &StartupOptions::default())
}
/// The arguments a child of this process starts with: a nightly launch hands its profile on, so the
-/// child opens the same private profile instead of being refused ("Open VectorCraft Nightly…"), and
-/// `--` keeps a file whose name starts with '-' a file. Stable's child arguments are unchanged.
-/// Only `single_instance` starts a child, and macOS does not build it.
+/// child opens the same private profile, and `--` keeps a file whose name starts with '-' a file.
+/// Stable's child arguments are unchanged. Only `single_instance` starts a child, and macOS does
+/// not build it.
#[cfg(not(target_os = "macos"))]
pub fn child_args(files: &[String]) -> Vec {
child_args_for(current(), files)
@@ -132,21 +30,24 @@ pub fn child_args(files: &[String]) -> Vec {
#[cfg(not(target_os = "macos"))]
fn child_args_for(profile: &Profile, files: &[String]) -> Vec {
- let mut args: Vec = match profile {
- Profile::Stable => Vec::new(),
- Profile::NightlyV1(root) => {
- vec![OsString::from("--launch-profile"), OsString::from(VERSION), OsString::from("--profile-root"), root.clone().into_os_string()]
- }
- };
- args.push(OsString::from("--"));
- args.extend(files.iter().map(OsString::from));
- args
+ let delimited: Vec = std::iter::once(OsString::from("--")).chain(files.iter().map(OsString::from)).collect();
+ match profile {
+ Profile::Stable => delimited,
+ Profile::NightlyV1(root) => craft_nightly::launch_arguments(root, &delimited),
+ }
}
#[cfg(test)]
mod tests {
- use super::*;
- use std::cell::Cell;
+ use std::ffi::OsString;
+ use std::path::PathBuf;
+
+ use craft_nightly::{BuildFlavor, Profile, ProfileError, StartupOptions, canonical_profile_root, parse_startup};
+
+ use super::VERSION;
+ #[cfg(not(target_os = "macos"))]
+ use super::child_args_for;
+ use crate::profile_root::app_profile_spec;
fn args(values: &[&str]) -> Vec {
values.iter().map(OsString::from).collect()
@@ -156,95 +57,72 @@ mod tests {
if cfg!(windows) { r"C:\NightlyData\profiles\vectorcraft" } else { "/nightly-data/profiles/vectorcraft" }
}
- fn nightly() -> Vec {
- args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--"])
- }
-
#[test]
- fn stable_arguments_and_directory_policy_are_unchanged() {
+ fn stable_arguments_are_unchanged_and_nightly_flags_are_refused() {
+ let spec = app_profile_spec();
for argv in [args(&[]), args(&["--new-instance", "a.svg"]), args(&["--", "--launch-profile", "file.svg"])] {
- let launch = prepare(parse(argv.clone()).unwrap(), |_| panic!("stable must never validate a nightly root")).unwrap();
- assert_eq!(launch, Launch { profile: Profile::Stable, args: argv });
+ let launch = parse_startup(BuildFlavor::Stable, &spec, argv.clone(), &StartupOptions::default()).unwrap();
+ assert_eq!(launch.profile, Profile::Stable);
+ assert_eq!(launch.passthrough_args, argv);
}
+
+ let nightly_flags = args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--"]);
+ let err = parse_startup(BuildFlavor::Stable, &spec, nightly_flags, &StartupOptions::default()).unwrap_err();
+ assert!(matches!(err, ProfileError::NightlyFlagsInStableBuild));
}
#[test]
- fn exact_version_and_root_are_parsed_without_reinterpreting_file_names() {
- let mut argv = nightly();
- argv.extend(args(&["--profile-root", "art with spaces.svg"]));
- let launch = parse(argv).unwrap();
+ fn nightly_direct_launch_self_isolates_into_canonical_profile_root() {
+ let spec = app_profile_spec();
+ let expected_root = canonical_profile_root("vectorcraft").unwrap();
+
+ let empty = parse_startup(BuildFlavor::NightlyV1, &spec, Vec::new(), &StartupOptions::default()).unwrap();
+ assert_eq!(empty.profile, Profile::NightlyV1(expected_root.clone()));
+ assert!(empty.passthrough_args.is_empty());
+
+ let with_args = parse_startup(BuildFlavor::NightlyV1, &spec, args(&["--safe-mode", "art.svg"]), &StartupOptions::default()).unwrap();
+ assert_eq!(with_args.profile, Profile::NightlyV1(expected_root));
+ assert_eq!(with_args.passthrough_args, args(&["--safe-mode", "art.svg"]));
+ }
+
+ #[test]
+ fn explicit_launcher_arguments_preserve_profile_root_and_user_args() {
+ let spec = app_profile_spec();
+ let argv = args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--", "--profile-root", "art with spaces.svg"]);
+ let launch = parse_startup(BuildFlavor::NightlyV1, &spec, argv, &StartupOptions::default()).unwrap();
assert_eq!(launch.profile, Profile::NightlyV1(PathBuf::from(absolute())));
- assert_eq!(launch.args, args(&["--", "--profile-root", "art with spaces.svg"]));
+ assert_eq!(launch.passthrough_args, args(&["--profile-root", "art with spaces.svg"]));
}
#[test]
- fn missing_duplicate_unknown_and_conflicting_profile_arguments_are_refused() {
- for argv in [
- args(&["--launch-profile", VERSION]),
- args(&["--profile-root", absolute()]),
- args(&["--launch-profile", "future-v2", "--profile-root", absolute(), "--"]),
- args(&["--launch-profile", VERSION, "--launch-profile", VERSION, "--profile-root", absolute(), "--"]),
- args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--profile-root", absolute(), "--"]),
- args(&["--launch-profile", VERSION, "--profile-root", "relative", "--"]),
- args(&["--launch-profile", VERSION, "--profile-root", "../escape", "--"]),
- args(&["--launch-profile", VERSION, "--profile-root", "", "--"]),
- args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--new-instance", "--"]),
- args(&["--launch-profile", VERSION, "--profile-root", absolute()]),
- ] {
- assert!(parse(argv.clone()).is_err(), "{argv:?}");
- }
- }
-
- #[test]
- fn the_launcher_version_check_is_a_version_query_only_in_its_exact_form() {
- let pair = &["--launch-profile", VERSION, "--profile-root", absolute()];
- let reversed = &["--profile-root", absolute(), "--launch-profile", VERSION];
+ fn version_queries_are_recognized_plain_and_via_launcher() {
+ let spec = app_profile_spec();
for flag in ["--version", "-V"] {
- for form in [pair, reversed] {
- let mut argv = args(form);
- argv.push(flag.into());
- assert!(version_query(&argv), "{argv:?}");
+ for argv in [
+ args(&[flag]),
+ args(&["--launch-profile", VERSION, "--profile-root", absolute(), flag]),
+ args(&["--profile-root", absolute(), "--launch-profile", VERSION, flag]),
+ args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--", flag]),
+ ] {
+ let launch = parse_startup(BuildFlavor::NightlyV1, &spec, argv.clone(), &StartupOptions::default()).unwrap();
+ assert!(launch.is_version_query(), "{argv:?}");
}
}
- for argv in [
- args(&["--version"]),
- args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--", "--version"]),
- args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--version", "--"]),
- args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--new-instance", "--version"]),
- args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--version", "--version"]),
- args(&["--version", "--launch-profile", VERSION, "--profile-root", absolute()]),
- args(&["--launch-profile", "future-v2", "--profile-root", absolute(), "--version"]),
- args(&["--launch-profile", VERSION, "--profile-root", "relative", "--version"]),
- args(&["--launch-profile", VERSION, "--version"]),
- args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--help"]),
- ] {
- assert!(!version_query(&argv), "{argv:?}");
- }
- // Outside the query the strict protocol still refuses the version flag.
- assert!(parse(args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--version"])).is_err());
}
#[test]
- fn failed_root_validation_never_reaches_startup_or_falls_back_to_stable() {
- let reached = Cell::new(false);
- let result = prepare(parse(nightly()).unwrap(), |_| Err("read-only or unsafe profile".to_string())).map(|_| reached.set(true));
- assert!(result.is_err());
- assert!(!reached.get());
- }
-
- #[test]
- fn successful_root_validation_keeps_the_persistent_root_not_the_binary_tag() {
- let checked = PathBuf::from(absolute()).join("checked");
- let launch = prepare(parse(nightly()).unwrap(), |_| Ok(checked.clone())).unwrap();
- assert_eq!(launch.profile.root(), Some(checked.as_path()));
- assert!(launch.profile.is_nightly());
- }
-
- #[test]
- fn a_joined_flag_form_is_refused() {
- for joined in [format!("--launch-profile={VERSION}"), format!("--profile-root={}", absolute())] {
- let argv = vec![OsString::from(joined), OsString::from("--")];
- assert!(parse(argv).is_err());
+ fn version_and_document_arguments_are_not_a_version_only_query() {
+ let spec = app_profile_spec();
+ for flag in ["--version", "-V"] {
+ for argv in [
+ args(&[flag, "art with spaces.svg"]),
+ args(&["--launch-profile", VERSION, "--profile-root", absolute(), flag, "art with spaces.svg"]),
+ args(&["--profile-root", absolute(), "--launch-profile", VERSION, flag, "art with spaces.svg"]),
+ ] {
+ let launch = parse_startup(BuildFlavor::NightlyV1, &spec, argv, &StartupOptions::default()).unwrap();
+ assert!(!launch.is_version_query());
+ assert_eq!(launch.passthrough_args, args(&[flag, "art with spaces.svg"]));
+ }
}
}
@@ -258,6 +136,7 @@ mod tests {
#[cfg(not(target_os = "macos"))]
#[test]
fn a_nightly_child_inherits_the_selected_profile() {
+ let spec = app_profile_spec();
let root = PathBuf::from(absolute());
let child = child_args_for(&Profile::NightlyV1(root.clone()), &["art.svg".to_string()]);
let expected = vec![
@@ -266,12 +145,12 @@ mod tests {
OsString::from("--profile-root"),
root.into_os_string(),
OsString::from("--"),
+ OsString::from("--"),
OsString::from("art.svg"),
];
assert_eq!(child, expected);
- // The child's own parse finds the same profile and the file list.
- let launch = parse(child).unwrap();
+ let launch = parse_startup(BuildFlavor::NightlyV1, &spec, child, &StartupOptions::default()).unwrap();
assert!(launch.profile.is_nightly());
- assert_eq!(launch.args, args(&["--", "art.svg"]));
+ assert_eq!(launch.passthrough_args, args(&["--", "art.svg"]));
}
}
diff --git a/apps/vectorcraft/src/mac_color_space.rs b/apps/vectorcraft/src/mac_color_space.rs
index 3fa1394804..ccdb340ec2 100644
--- a/apps/vectorcraft/src/mac_color_space.rs
+++ b/apps/vectorcraft/src/mac_color_space.rs
@@ -99,6 +99,7 @@ mod tests {
}
/// A layer without a color space is tagged sRGB once; the second call leaves it as it is.
+ // test-lint: allow never-run macOS only; CI runs tests on Linux and FreeBSD
#[test]
fn an_untagged_layer_becomes_srgb() {
let layer = CAMetalLayer::new();
@@ -110,6 +111,7 @@ mod tests {
}
/// A layer with a color space of its own keeps it.
+ // test-lint: allow never-run macOS only; CI runs tests on Linux and FreeBSD
#[test]
fn a_layer_with_a_color_space_keeps_it() {
let layer = CAMetalLayer::new();
@@ -121,6 +123,7 @@ mod tests {
/// The Metal layer is found as the view's layer or as one of its sublayers, and only Metal
/// layers are returned.
+ // test-lint: allow never-run macOS only; CI runs tests on Linux and FreeBSD
#[test]
fn metal_layers_are_found_under_the_view_layer() {
let metal = CAMetalLayer::new();
diff --git a/apps/vectorcraft/src/mac_fonts.rs b/apps/vectorcraft/src/mac_fonts.rs
index 36223c559f..4e9f996d62 100644
--- a/apps/vectorcraft/src/mac_fonts.rs
+++ b/apps/vectorcraft/src/mac_fonts.rs
@@ -52,6 +52,7 @@ mod tests {
use objc2_core_text::{CTFontManagerRegisterFontsForURL, CTFontManagerScope, CTFontManagerUnregisterFontsForURL};
/// CoreText lists the installed fonts, by their files' full paths.
+ // test-lint: allow never-run macOS only; CI runs tests on Linux and FreeBSD
#[test]
fn coretext_lists_the_installed_font_files() {
let files = super::font_files();
@@ -61,6 +62,7 @@ mod tests {
/// A font registered with CoreText from another folder, as apps and font managers register
/// fonts, is listed while it is registered.
+ // test-lint: allow never-run macOS only; CI runs tests on Linux and FreeBSD
#[test]
fn fonts_registered_from_other_folders_are_listed() {
let dir = tempfile::Builder::new().prefix("vectorcraft-mac-fonts-").tempdir().unwrap();
diff --git a/apps/vectorcraft/src/main.rs b/apps/vectorcraft/src/main.rs
index 5a7d3e33ba..4b1c77e0f1 100644
--- a/apps/vectorcraft/src/main.rs
+++ b/apps/vectorcraft/src/main.rs
@@ -112,6 +112,43 @@ use prefs::{load_prefs, log_dir, open_store, prefs_enabled};
const DEFAULT_SIZE: [f32; 2] = [1440.0, 900.0];
const MIN_SIZE: [f32; 2] = [800.0, 500.0];
+/// Apply the saved main-window placement before the first frame. On a first launch the
+/// framework maximizes the window when its default size would not fit the current screen.
+fn restore_main_window(window: &winit::window::Window, store: &Store, legacy: Option, wayland: bool) {
+ use craft::behavior::placement::{Defaults, Placement, place};
+ use craft::behavior::{Monitor, MonitorKey};
+ use winit::dpi::{LogicalSize, PhysicalPosition};
+
+ let handles: Vec<_> = window.available_monitors().collect();
+ let monitors: Vec<_> = handles
+ .iter()
+ .map(|monitor| {
+ let size = monitor.size();
+ let size = [size.width, size.height];
+ let position = monitor.position();
+ Monitor::new(MonitorKey::new(monitor.name().unwrap_or_default(), size), [position.x, position.y], size, monitor.scale_factor() as f32)
+ })
+ .collect();
+ let home = window.current_monitor().or_else(|| window.primary_monitor()).and_then(|monitor| handles.iter().position(|m| *m == monitor));
+ let defaults = Defaults::new(DEFAULT_SIZE, MIN_SIZE).with_no_position(wayland);
+ let saved = store.get(craft::window::restore::MAIN).or_else(|| {
+ let old = legacy?;
+ let mut placement = Placement::new(old.size, window.scale_factor() as f32);
+ placement.position_px = old.pos;
+ placement.maximized = old.maximized;
+ placement.repaired()
+ });
+ let placement = place(saved.as_ref(), &monitors, home, &defaults);
+ if let Some([x, y]) = placement.position_px {
+ window.set_outer_position(PhysicalPosition::new(x, y));
+ }
+ let [width, height] = placement.normal.size;
+ let _ = window.request_inner_size(LogicalSize::new(width, height));
+ if placement.maximized {
+ window.set_maximized(true);
+ }
+}
+
/// The window, Dock, taskbar and app-switcher icon (`assets/app-icon/`, see its README). macOS gets
/// the version with Apple's transparent margin; elsewhere the full-bleed tile. The app ID matches
/// `packaging/linux/ai.storyteller.vectorcraft.desktop` so Wayland docks find the launcher icon.
@@ -359,21 +396,48 @@ fn read_command_line(
/// Whether the window opens through XWayland, for Linux Display Server `pref` (`main`).
#[cfg(target_os = "linux")]
fn opens_through_xwayland(pref: Option<&str>) -> bool {
- if !xwayland::wanted(pref, |name| std::env::var_os(name), xwayland::pen_attached) {
+ use xwayland::Choice;
+ let choice = xwayland::choose(pref, |name| std::env::var_os(name), xwayland::pen_attached);
+ // On native Wayland winit 0.30 receives no pen input, so the log says why the window stays there.
+ match &choice {
+ Choice::NotWayland | Choice::Chosen | Choice::Pen(_) => {}
+ Choice::NoXDisplay { x11: true } => {
+ log::warn!("Linux Display Server is X11, but there is no X display (DISPLAY is unset): opening the window on Wayland")
+ }
+ Choice::NoXDisplay { x11: false } => log::info!(
+ "opening the window on Wayland, where a pen does not reach it: there is no X display (DISPLAY is unset) to open it through XWayland"
+ ),
+ Choice::NativeWayland => log::info!("VECTORCRAFT_NATIVE_WAYLAND is set: opening the window on Wayland, where a pen does not reach it"),
+ Choice::NoPen => log::info!("no pen in /proc/bus/input/devices: opening the window on Wayland"),
+ Choice::NoDeviceList(e) => log::warn!("can't look for a pen ({e}): opening the window on Wayland, where a pen does not reach it"),
+ }
+ if !choice.xwayland() {
return false;
}
if !xwayland::x11_libraries_found() {
- log::warn!("Linux Display Server is X11, but the X11 libraries aren't all installed: opening the window on Wayland");
+ if let Choice::Pen(name) = &choice {
+ log::warn!(
+ "pen found ({name}), but the X11 libraries aren't all installed: opening the window on Wayland, where the pen does not reach it"
+ );
+ } else {
+ log::warn!("Linux Display Server is X11, but the X11 libraries aren't all installed: opening the window on Wayland");
+ }
return false;
}
- if pref != Some("x11") {
- log::info!("pen found: opening the window through XWayland, where the pen works (VECTORCRAFT_NATIVE_WAYLAND=1 keeps Wayland)");
+ if let Choice::Pen(name) = &choice {
+ log::info!("pen found ({name}): opening the window through XWayland, where the pen works (VECTORCRAFT_NATIVE_WAYLAND=1 keeps Wayland)");
} else {
log::info!("opening the window through XWayland (Preferences › Performance › Linux Display Server)");
}
true
}
+/// The docking runtime needs the backend the desktop window is opened on.
+fn desktop_shell_info(detected: Backend, forced_to_x11: bool) -> ShellInfo {
+ let backend = if forced_to_x11 { Backend::X11 } else { detected };
+ ShellInfo::current().backend(backend)
+}
+
/// The nightly channel this build is, as a string for the log.
fn channel_name() -> &'static str {
match build_flavor::COMPILED {
@@ -384,58 +448,47 @@ fn channel_name() -> &'static str {
/// Says why a nightly launch was refused, then exits 2. A window could not have shown it yet: this
/// app has no message box of its own before eframe starts (its dialogs are egui windows), so the
-/// text goes to standard error, which a Launcher launch records. The desktop-session test still
-/// decides whether a daily user would have seen it, for the message's wording.
+/// text goes to standard error, which a Launcher launch records.
fn report_launch_profile_error(error: &str) {
eprintln!("VectorCraft launch profile: {error}");
- let desktop_session = cfg!(windows)
- || cfg!(target_os = "macos")
- || (cfg!(target_os = "linux") && ["DISPLAY", "WAYLAND_DISPLAY"].into_iter().any(|key| std::env::var_os(key).is_some_and(|v| !v.is_empty())));
- if build_flavor::needs_native_error(build_flavor::COMPILED, desktop_session) {
- eprintln!("VectorCraft Nightly: open it from ArtCraft Launcher, which starts it in its own profile");
- }
+}
+
+fn write_nightly_version() {
+ use std::io::Write as _;
+ let line = format!("VectorCraft {}\n", build_flavor::version(build_flavor::COMPILED, env!("VECTORCRAFT_BUILT_VERSION")));
+ let _ = std::io::stdout().write_all(line.as_bytes());
}
/// Selects the immutable launch profile before any startup service or side effect, and returns the
/// arguments the rest of `main` reads. `None` means the process ends here (`--version` answered).
fn prepare_launch() -> Option> {
- // The trusted Launcher protocol is decided before the logger, updates, fonts or any saved state.
+ // The launch profile is decided before the logger, updates, fonts or any saved state.
let argv: Vec<_> = std::env::args_os().skip(1).collect();
- // A nightly answers its version before root validation, process identity, IPC or any window:
- // plain `--version`/`-V`, or the Launcher's `--launch-profile nightly-v1 --profile-root
- // --version`. A stable build leaves the answer to `read_command_line`, exactly as before.
- if build_flavor::COMPILED == build_flavor::BuildFlavor::NightlyV1 && (build_flavor::version_query(&argv) || launch_profile::version_query(&argv))
- {
- use std::io::Write as _;
- let line = format!("VectorCraft {}\n", build_flavor::version(build_flavor::COMPILED, env!("VECTORCRAFT_BUILT_VERSION")));
- let _ = std::io::stdout().write_all(line.as_bytes());
+ // A plain nightly version query does not even need the OS home/data root to resolve.
+ if build_flavor::COMPILED == build_flavor::BuildFlavor::NightlyV1 && build_flavor::version_query(&argv) {
+ write_nightly_version();
+ return None;
+ }
+ let early = launch_profile::prepare_launch(build_flavor::COMPILED, argv).unwrap_or_else(|error| {
+ report_launch_profile_error(&error.to_string());
+ std::process::exit(2)
+ });
+ // A launcher version query also exits before process identity, IPC or any window.
+ // `craft_nightly::prepare_launch` skips root preparation for version queries.
+ // A stable build leaves the answer to `read_command_line`, exactly as before.
+ if build_flavor::COMPILED == build_flavor::BuildFlavor::NightlyV1 && early.is_version_query() {
+ write_nightly_version();
return None;
}
- let early = launch_profile::parse(argv)
- .and_then(|launch| {
- build_flavor::require_profile(build_flavor::COMPILED, &launch.profile)?;
- Ok(launch)
- })
- .and_then(|launch| {
- launch_profile::prepare(launch, |root| {
- launch_profile::validate_root(root, |key| std::env::var_os(key), std::env::current_exe().ok().as_deref())
- })
- })
- .unwrap_or_else(|error| {
- report_launch_profile_error(&error);
- std::process::exit(2)
- });
let nightly = early.profile.is_nightly();
let identity =
if nightly { vectorcraft_ui_egui::os_window::LaunchIdentity::NightlyV1 } else { vectorcraft_ui_egui::os_window::LaunchIdentity::Stable };
- let install = launch_profile::install(early.profile).and_then(|()| {
- // Every data path follows the selected profile from here on: settings, logs, recovery, the
- // user's libraries, plug-ins, caches and the single-instance record.
- if let Some(root) = launch_profile::current().root() {
- prefs_dir::profile::install_data_root(root.to_path_buf())?;
- }
- vectorcraft_ui_egui::os_window::select_identity(identity)
- });
+ // Every data path follows the selected profile from here on: settings, logs, recovery, the
+ // user's libraries, plug-ins, caches and the single-instance record.
+ let install = launch_profile::current()
+ .root()
+ .map_or(Ok(()), |root| prefs_dir::profile::install_data_root(root.to_path_buf()))
+ .and_then(|()| vectorcraft_ui_egui::os_window::select_identity(identity));
if let Err(error) = install {
report_launch_profile_error(&error);
std::process::exit(2);
@@ -453,11 +506,11 @@ fn prepare_launch() -> Option> {
// The window's identity, not the profile, failed: main's own failure status (1).
std::process::exit(1);
}
- Some(early.args)
+ Some(early.passthrough_args)
}
/// The arguments the rest of `main` reads: a nightly's profile tokens were consumed by
-/// `prepare_launch`, so what is left is `--` and the files to open. A stable launch reads its
+/// `prepare_launch`, leaving any user flags and files to open. A stable launch reads its
/// arguments exactly as it always did.
fn launch_arguments(nightly: bool, arguments: &[std::ffi::OsString]) -> Vec {
if nightly { arguments.iter().map(|a| a.to_string_lossy().into_owned()).collect() } else { std::env::args().skip(1).collect() }
@@ -520,8 +573,9 @@ fn finish_pending_update(nightly: bool) {
}
fn main() -> std::process::ExitCode {
- // The launch profile first: a nightly build without one is refused here, before the update
- // helper, the logger, fonts or any saved state, and `--version` is answered here too.
+ // The launch profile first: a nightly build self-isolates or uses the Launcher's profile here,
+ // before the update helper, the logger, fonts or any saved state, and `--version` is answered
+ // here too.
let Some(arguments) = prepare_launch() else { return std::process::ExitCode::SUCCESS };
let nightly = launch_profile::current().is_nightly();
#[cfg(windows)]
@@ -670,10 +724,10 @@ fn main() -> std::process::ExitCode {
// A window forced onto XWayland runs on X11, whose window manager draws the frame: the
// framework decides the frame for that backend, from the platform, `VECTORCRAFT_TITLEBAR` and
// Preferences › User Interface › System Title Bar.
- let shell_info = if forced_to_x11 { ShellInfo::current().backend(Backend::X11) } else { ShellInfo::current() };
+ let shell_info = desktop_shell_info(Backend::from_env(), forced_to_x11);
// On Wayland with no cursor theme, the system pointer stays and no tool cursor is painted
// beside it (#2450, #5311).
- let wayland = !forced_to_x11 && Backend::from_env() == Backend::Wayland;
+ let wayland = shell_info.backend == Backend::Wayland;
let caps = cursor_theme::shell_caps(shell_info.caps, wayland, cursor_theme::theme_missing);
let shell_info = shell_info.caps(caps);
let titlebar_pref =
@@ -695,14 +749,14 @@ fn main() -> std::process::ExitCode {
// With Windows Ink, winit reports a pen as a touch and drops its barrel button and which end
// is down; the message hook notes each pointer contact and whether it starts with the barrel
// button held, and writes the pen's end into the pen feed (`windows_stylus`). It also notes the
- // characters Alt + keypad codes type (`windows_alt_codes`).
+ // keypad digits of Alt + keypad codes (`windows_alt_codes`).
#[cfg(windows)]
let options = {
use winit::platform::windows::EventLoopBuilderExtWindows as _;
let mut options = options;
options.event_loop_builder = Some(Box::new(|builder| {
builder.with_msg_hook(|msg| {
- // Alt + keypad codes (#5108), which winit drops; neither hook consumes a message.
+ // Alt + keypad codes (#5108); neither hook consumes a message.
windows_alt_codes::msg_hook(msg);
windows_stylus::msg_hook(msg)
});
@@ -791,9 +845,13 @@ fn main() -> std::process::ExitCode {
Box::new(move |cc| {
let ctx = &cc.egui_ctx;
let winit_window = cc.winit_window().cloned();
+ let placement = placement_store();
+ if let Some(window) = &winit_window {
+ restore_main_window(window, &placement, settings.lock().get().ui.legacy_window, wayland);
+ }
let spec = InstallSpec::new(shell_info, Arc::new(SystemWindows))
.app_id(vectorcraft_ui_egui::os_window::app_id())
- .placement(Arc::new(Mutex::new(placement_store())))
+ .placement(Arc::new(Mutex::new(placement)))
.frame(decision);
let spec = match start_pen(&winit_window) {
Some(pen) => spec.pen(pen),
@@ -808,7 +866,7 @@ fn main() -> std::process::ExitCode {
};
let (files, file_panels) = file_service(wake, folders);
let files = Arc::new(files);
- craft::host::Host::builder(AppInfo {
+ let host = craft::host::Host::builder(AppInfo {
id: vectorcraft_ui_egui::os_window::SETTINGS_APP_ID,
name: vectorcraft_ui_egui::os_window::name(),
version: vectorcraft_ui_egui::os_window::version(),
@@ -816,7 +874,8 @@ fn main() -> std::process::ExitCode {
.i18n(vectorcraft_ui_egui::i18n::shared())
.settings(Arc::new(settings.clone()))
.files(files.clone())
- .install(ctx);
+ .build();
+ host.clone().install(ctx);
let mut session = Session::new();
// The profiles loaded before come back before the preferences name any of them.
prefs_dir::attach_profile_store(&mut session);
@@ -841,6 +900,7 @@ fn main() -> std::process::ExitCode {
prefs_dir::attach_proof_setups(&mut session);
prefs_dir::attach_script_data(&mut session);
let mut app = VectorcraftApp::new(session, services(winit_window.clone()));
+ app.host = Arc::new(host);
app.adopt_context(&cc.egui_ctx);
// A nightly is updated by the Launcher: it never checks for a stable release, which
// would install this program's own updater over the nightly build.
@@ -887,7 +947,13 @@ fn main() -> std::process::ExitCode {
let summary = adapter_summary(&rs.adapter.get_info());
log::info!("rendering with {summary} (power preference {power:?})");
created.created(&cc.egui_ctx);
- if !gpu::skipped().is_empty() {
+ if gpu::software_start() {
+ // No graphics processor could show the window, so Mesa draws it on the CPU (#2654).
+ app.status(format!(
+ "No graphics processor could show the window, so VectorCraft started again on {summary}, which draws on the CPU and is slower. Showing it on the graphics processor needs a driver with {}",
+ gpu::NEEDS
+ ));
+ } else if !gpu::skipped().is_empty() {
// A processor chosen in Settings can be the one that can't show the window.
if chosen_gpu {
app.status(format!(
@@ -921,14 +987,22 @@ fn main() -> std::process::ExitCode {
.map(|_| (format!("{:?}", requested_surface.present_mode), requested_surface.desired_maximum_frame_latency));
#[cfg(not(feature = "wgpu"))]
let surface = None;
+ let facts = hang_watch::Facts::new(
+ |name| std::env::var(name).ok(),
+ std::path::Path::new("/.flatpak-info").exists(),
+ hang_watch::window_system(winit_window.as_deref()),
+ app.graphics_adapter.clone(),
+ hang_watch::surface(surface),
+ );
+ #[cfg(feature = "wgpu")]
+ let facts = if let Some(rs) = &cc.wgpu_render_state {
+ let info = rs.adapter.get_info();
+ facts.with_graphics_driver(&info.driver, &info.driver_info)
+ } else {
+ facts
+ };
let hang = std::sync::Arc::new(hang_watch::Shared {
- facts: hang_watch::Facts::new(
- |name| std::env::var(name).ok(),
- std::path::Path::new("/.flatpak-info").exists(),
- hang_watch::window_system(winit_window.as_deref()),
- app.graphics_adapter.clone(),
- hang_watch::surface(surface),
- ),
+ facts,
started: std::time::Instant::now(),
last: std::sync::Mutex::new(None),
previous: previous_hang.clone(),
diff --git a/apps/vectorcraft/src/open_documents.rs b/apps/vectorcraft/src/open_documents.rs
index 67f409b0e8..a126618ee0 100644
--- a/apps/vectorcraft/src/open_documents.rs
+++ b/apps/vectorcraft/src/open_documents.rs
@@ -94,6 +94,7 @@ mod tests {
use super::*;
/// Files queue until the UI takes them; URLs that aren't files are left out.
+ // test-lint: allow never-run macOS only; CI runs tests on Linux and FreeBSD
#[test]
fn opened_files_wait_for_the_ui() {
let web = NSURL::URLWithString(&NSString::from_str("https://example.com/a.svg")).unwrap();
diff --git a/apps/vectorcraft/src/prefs.rs b/apps/vectorcraft/src/prefs.rs
index 09c57f22e4..636b8c81ef 100644
--- a/apps/vectorcraft/src/prefs.rs
+++ b/apps/vectorcraft/src/prefs.rs
@@ -4,7 +4,7 @@ use std::path::PathBuf;
use std::sync::{Mutex, PoisonError};
use std::time::{Duration, Instant};
-use craft::settings::{LegacyFile, LoadReport, Location, OpenOptions, SettingsStore, SharedSettings};
+use craft::settings::{LegacyFile, LoadReport, Location, OpenOptions, SectionError, SettingsStore, SharedSettings};
use vectorcraft_ui_egui::{AppSettings, from_app, parse_legacy};
use super::{VectorcraftApp, prefs_dir};
@@ -18,6 +18,15 @@ fn legacy_dir() -> Option {
prefs_dir::profile::prefs_dir(true)
}
+/// Parses the one `ui.json` slot of a legacy import: its bytes, or why it could not be read.
+fn parse_legacy_slot(slots: &[Result