forked from 1b-agent/opencadstudio-upstream
Opening a drawing no longer drops entities with its own sanity checks or rewrites knotless splines; recovery runs the codec's repair and records its actions and unresolved issues in the drawing's notifications. Xref merges keep every entity. The dropped-entity counts, their command-line warnings, recovery report rows and the automation "purged" field go with the guard. AUDIT now reports the codec's audit (counts plus the first 50 issues) and asks whether to fix; Yes applies the codec repair as one undo step. Cargo: codec 325fa98, kernel dfca391, graph 5d4e713. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
730 B
TOML
20 lines
730 B
TOML
[package]
|
|
name = "plugin-template-v2"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Example OpenCAD Studio plugin demonstrating the shared-memory DocumentReader API."
|
|
license = "GPL-3.0-only"
|
|
|
|
[workspace]
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
ocs_plugin_api = { path = "../../crates/ocs_plugin_api", features = ["host"] }
|
|
# Must match the host's opencadcodec pin exactly (its Cargo.toml's `codec`
|
|
# entry): the plugin's entities and the host's re-exports are the same types
|
|
# only when both resolve the same revision. The registration `rustc` /
|
|
# `acadrust_source` gates enforce this at load time too.
|
|
acadrust = { package = "opencadcodec", git = "https://github.com/HakanSeven12/opencadcodec.git", rev = "325fa98" }
|