Pin craft-libs at the framework head, drop unused workspace entries, mcp and apps reach automation through the craft facade

This commit is contained in:
bflatastic
2026-11-21 23:49:27 +07:00
parent 41d6eae996
commit a30131fb4d
6 changed files with 35 additions and 43 deletions
+29 -37
View File
@@ -11,44 +11,36 @@ rust-version = "1.95"
repository = "https://github.com/storytold/vectorcraft"
[workspace.dependencies]
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b", default-features = false, features = ["interpret", "write"] }
craft-print = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-ui = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b", features = ["serde"] }
craft-keymap = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
# Decides who draws the window frame (desktop vs. app) so the suite shares one native titlebar per
# desktop. The `egui` feature adds `craft_window::decorate`. (craft-libs#217.)
craft-window = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b", features = ["egui"] }
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2", default-features = false, features = ["interpret", "write"] }
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
# 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 = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
# craft-update: app-specific pretend versions apply to startup and manual checks.
craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
# Native Affinity documents (craft-libs#914).
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
# SVG parsing, limits, SVGZ and writer (craft-libs#778).
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b", features = ["tree"] }
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2", features = ["tree"] }
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
# EPS container, previews, ASCII85 and DSC comments (craft-libs#778).
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
# DXF tags, reader and writer (craft-libs#778, #926, #927).
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
# WMF, EMF and EMF+ reader (craft-libs#778).
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b", default-features = false, features = ["write"] }
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "bbe5b514a8197c671a261339f297deecc4df881b", features = ["egui"] }
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2", default-features = false, features = ["write"] }
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
# 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 = "bbe5b514a8197c671a261339f297deecc4df881b" }
craft = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
# internal
vectorcraft-geom = { path = "crates/geom" }
vectorcraft-color = { path = "crates/color" }
@@ -189,13 +181,13 @@ lto = "thin"
codegen-units = 1
[patch.crates-io]
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
krilla = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "bbe5b514a8197c671a261339f297deecc4df881b" }
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
krilla = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "57bc4efe0761dc6b5f7a0cb612b10b8d6597ccd2" }
ecolor = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" }
emath = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" }
epaint = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" }
+1 -1
View File
@@ -20,7 +20,7 @@ vectorcraft-ui-egui = { workspace = true }
craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "50b0ee7bf811e363b5f238382b5c77318cf33e46", version = "0.1.0" }
vectorcraft-format = { workspace = true }
vectorcraft-text = { workspace = true }
craft = { workspace = true, features = ["ui", "keymap"] }
craft = { workspace = true, features = ["ui", "keymap", "automation"] }
egui = { workspace = true }
egui_extras = { workspace = true }
log = { workspace = true }
+1 -1
View File
@@ -26,7 +26,7 @@ use std::pin::Pin;
use std::rc::Rc;
use std::sync::mpsc::{Receiver, Sender, TryRecvError};
use craft_automation::{ControlRequest, Dispatch};
use craft::automation::{ControlRequest, Dispatch};
use craft_web_api::methods::Methods;
use craft_web_api::page::{PageApi, Request};
use serde_json::{Value, json};
+1 -1
View File
@@ -4,7 +4,7 @@
use std::path::PathBuf;
use craft_automation::args::{ControlOptions, OptionsError, Source, control_port};
use craft::automation::args::{ControlOptions, OptionsError, Source, control_port};
pub struct AutomationArgs {
pub read_roots: Vec<PathBuf>,
+1 -1
View File
@@ -22,7 +22,7 @@ vectorcraft-format = { workspace = true }
vectorcraft-tools = { workspace = true }
vectorcraft-geom = { workspace = true }
vectorcraft-doc = { workspace = true }
craft-automation = { workspace = true }
craft = { workspace = true, features = ["automation"] }
serde_json = { workspace = true }
log = { workspace = true }
+2 -2
View File
@@ -2,8 +2,8 @@
use std::net::{SocketAddr, ToSocketAddrs};
use craft_automation::args::{ControlOptions, EnvNames};
use craft_automation::client::ControlClient;
use craft::automation::args::{ControlOptions, EnvNames};
use craft::automation::client::ControlClient;
use serde_json::Value;
/// Something that answers control-channel methods (`engine.execute`, `document.inspect`,