From 9a86a7394c70d609ab36562a7c37dfdb27a9800f Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Wed, 15 Jul 2026 07:55:27 +0300 Subject: [PATCH] build(deps): compile acadrust from the OpenAEC-Foundation/acadifc fork MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Point the acadrust patch at the OpenAEC-Foundation/acadifc fork (still the `acadrust` crate). Its main carries the Arc copy-on-write entity storage that makes the undo document clone O(entities) refcount bumps instead of a full deep copy — cutting the per-edit snapshot on a 788k-entity drawing from ~1.7s to ~70ms. No source changes here: acadrust`s public API is unchanged. Co-Authored-By: Claude Opus 4.8 --- Cargo.lock | 4 ++-- Cargo.toml | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ea4f2adda..07c029eeb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -73,7 +73,7 @@ checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618" [[package]] name = "acadrust" version = "0.4.0" -source = "git+https://github.com/HakanSeven12/acadrust?branch=main#d1e198b66db8a460915d7ebcdb293e912d7bf964" +source = "git+https://github.com/OpenAEC-Foundation/acadifc?branch=main#a7f4741eb9dbcc8f44170eca3a5c85143b6cf432" dependencies = [ "ahash 0.8.12", "anyhow", @@ -3178,7 +3178,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b577e2d69827c4740cba2b52efaad1c4cc7c73042860b199710b3575c68438d" dependencies = [ "bytecount", - "memchr 1.0.2", + "memchr 2.8.2", "nom 8.0.0", ] diff --git a/Cargo.toml b/Cargo.toml index e27e5b0c9..d4a73d53d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -89,10 +89,11 @@ lyon_tessellation = "1.0.20" windows-sys = { version = "0.61", features = ["Win32_UI_Shell", "Win32_UI_WindowsAndMessaging", "Win32_System_Com", "Win32_System_Registry", "Win32_Foundation"] } [patch.crates-io] -# Tracks HakanSeven12/acadrust main (0.4.x): the plotstyle/material common- -# entity ordering fix plus the in-flight DWG reader work, ahead of the crates.io -# release. Drop the patch once those land in a published 0.4 crate. -acadrust = { git = "https://github.com/HakanSeven12/acadrust", branch = "main" } +# The `acadrust` crate now tracks the OpenAEC-Foundation/acadifc fork's main +# (still the `acadrust` package): the in-flight DWG reader work plus the Arc +# copy-on-write entity storage that makes the undo document clone cheap. Drop the +# patch once these land in a published 0.4 crate. +acadrust = { git = "https://github.com/OpenAEC-Foundation/acadifc", branch = "main" } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] # Native enables the plugin host runtime (out-of-process plugins).