diff --git a/Cargo.lock b/Cargo.lock index d17a550be..ebe383f76 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1177,17 +1177,25 @@ dependencies = [ [[package]] name = "craft-codepage" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" + +[[package]] +name = "craft-dds" +version = "0.1.0" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" +dependencies = [ + "rayon", +] [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" [[package]] name = "craft-dwg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "acadrust", "log", @@ -1196,7 +1204,7 @@ dependencies = [ [[package]] name = "craft-dxf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "craft-codepage", "encoding_rs", @@ -1208,7 +1216,7 @@ dependencies = [ [[package]] name = "craft-font-catalog" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "harfrust 0.13.3", "kurbo", @@ -1222,12 +1230,12 @@ dependencies = [ [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "fixed_decimal", "icu_decimal", @@ -1250,8 +1258,9 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ + "craft-dds", "craft-jpeg", "craft-metadata", "craft-tiff", @@ -1276,7 +1285,7 @@ dependencies = [ [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "thiserror 2.0.21", ] @@ -1284,7 +1293,7 @@ dependencies = [ [[package]] name = "craft-jsonrpc" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "serde_json", ] @@ -1292,7 +1301,7 @@ dependencies = [ [[package]] name = "craft-mcp" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "craft-jsonrpc", "serde_json", @@ -1301,7 +1310,7 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "brotli-decompressor", "chrono", @@ -1313,7 +1322,7 @@ dependencies = [ [[package]] name = "craft-mime" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "chrono", "craft-codepage", @@ -1323,7 +1332,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "hayro-syntax", "krilla", @@ -1333,12 +1342,12 @@ dependencies = [ [[package]] name = "craft-shx" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "craft-xml", "flate2", @@ -1353,7 +1362,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "serde", "thiserror 2.0.21", @@ -1362,7 +1371,7 @@ dependencies = [ [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "craft-fonts-build", "craft-i18n", @@ -1383,7 +1392,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "chrono", "dunce", @@ -1410,7 +1419,7 @@ dependencies = [ [[package]] name = "craft-web-api" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "js-sys", "serde_json", @@ -1421,7 +1430,7 @@ dependencies = [ [[package]] name = "craft-web-host" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "wasm-bindgen", "web-sys", @@ -1430,7 +1439,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "egui", "objc2 0.6.5", @@ -1441,7 +1450,7 @@ dependencies = [ [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "quick-xml 0.41.0", "serde", @@ -2460,7 +2469,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a" [[package]] name = "hayro-jbig2" version = "0.3.0" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "hayro-ccitt", ] @@ -2477,7 +2486,7 @@ dependencies = [ [[package]] name = "hayro-syntax" version = "0.7.2" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "hayro-jbig2", "hayro-jpeg2000", @@ -2977,7 +2986,7 @@ dependencies = [ [[package]] name = "krilla" version = "0.8.2" -source = "git+https://github.com/storytold/craft-libs?rev=3af2280ee3434a2c860012df2f440652621c2c81#3af2280ee3434a2c860012df2f440652621c2c81" +source = "git+https://github.com/storytold/craft-libs?rev=be0b1e655229e34f1ad263ef3d2170e46449c39b#be0b1e655229e34f1ad263ef3d2170e46449c39b" dependencies = [ "base64 0.22.1", "bumpalo", diff --git a/Cargo.toml b/Cargo.toml index 1dc5bebf4..69696c011 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,11 +14,11 @@ repository = "https://github.com/storytold/cadcraft" # internal cadcraft-geom = { path = "crates/geom" } # DXF tags: the shared reader and writer (moved from crates/dxf; craft-libs#791). -craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81" } -craft-dwg = { git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81" } -craft-shx = { git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81" } -craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81" } -craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81" } +craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b" } +craft-dwg = { git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b" } +craft-shx = { git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b" } +craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b" } +craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b" } cadcraft-color = { path = "crates/color" } cadcraft-doc = { path = "crates/doc" } cadcraft-constraints = { path = "crates/constraints" } @@ -28,17 +28,17 @@ cadcraft-io = { path = "crates/io" } cadcraft-engine = { path = "crates/engine" } cadcraft-ui-egui = { path = "crates/ui-egui" } cadcraft-mcp = { path = "crates/mcp" } -craft-mcp = { git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81" } -craft-jsonrpc = { git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81" } +craft-mcp = { git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b" } +craft-jsonrpc = { git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b" } # SVG/SVGZ import and export geometry (craft-libs#778). -craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81" } +craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b" } # Which paths stored in a drawing (xrefs, data links) may be opened. -craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81" } +craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b" } # PDF writing (krilla) for plots, and reading them back in tests. The root patches below pin # craft-pdf's patched backends to the same revision (Cargo ignores dependency-local patches). -craft-pdf = { version = "=0.1.0", git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81", default-features = false } +craft-pdf = { version = "=0.1.0", git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b", default-features = false } # TrueType embedding-permission classification for plotted fonts (craft-libs#778). -craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81", default-features = false } +craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b", default-features = false } clap = { version = "4", features = ["derive", "env"] } clap_complete = "4.6.11" clap_mangen = { version = "0.3.3", features = ["env"] } @@ -70,8 +70,8 @@ encoding_rs = "0.8.35" quick-xml = "0.42" # ui -craft-ui = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81", features = ["serde"] } -craft-window = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81", features = ["egui"] } +craft-ui = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b", features = ["serde"] } +craft-window = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b", features = ["egui"] } egui = { version = "0.37", default-features = false, features = ["default_fonts", "monochrome_emoji_fonts"] } # Resizable table columns (About ▸ Contributors / Models); no image loaders. egui_extras = { version = "0.37", default-features = false } @@ -81,7 +81,7 @@ egui-wgpu = "0.37" # Monotonic time on native and web (performance.now on wasm). web-time = "1.1" # craft-update: app-specific pretend versions apply to startup and manual checks. -craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "3af2280ee3434a2c860012df2f440652621c2c81", features = ["egui"] } +craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b", features = ["egui"] } rfd = "0.17" arboard = { version = "3.6", default-features = false } @@ -113,9 +113,9 @@ debug = 0 # PDF backends for craft-pdf: pinned to the same reviewed craft-libs revision as craft-pdf itself # (Cargo ignores dependency-local patches). [patch.crates-io] -krilla = { version = "=0.8.2", git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81" } -hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81" } -hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81" } +krilla = { version = "=0.8.2", git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b" } +hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b" } +hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b" } # Keep the complete egui family and native event bridge on reviewed fork commits. ecolor = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } diff --git a/apps/cadcraft-web/Cargo.toml b/apps/cadcraft-web/Cargo.toml index fc2ed384e..bc864461c 100644 --- a/apps/cadcraft-web/Cargo.toml +++ b/apps/cadcraft-web/Cargo.toml @@ -21,8 +21,8 @@ cadcraft-io = { workspace = true } cadcraft-fonts = { workspace = true } # The host messages (storytold/craft-libs): one contract and one bridge for the web builds. # The page command API (storytold/craft-libs#413): window.cadcraft over the control channel. -craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81", version = "0.1.0" } -craft-web-host = { git = "https://github.com/storytold/craft-libs", rev = "3af2280ee3434a2c860012df2f440652621c2c81", version = "0.1.0" } +craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b", version = "0.1.0" } +craft-web-host = { git = "https://github.com/storytold/craft-libs", rev = "be0b1e655229e34f1ad263ef3d2170e46449c39b", version = "0.1.0" } egui = { workspace = true } log = { workspace = true } serde_json = { workspace = true }