forked from 1b-agent/opencadstudio-upstream
Brings in the DXF round-trip fixes merged as cadcodec #48 and #51 and the block-definition fixes for cadcodec issues #49 and #52. cadkernel moved to the same codec revision first, so the graph keeps a single acadrust. The Python plugin, which is outside the workspace, has its own lock moved too: its staging script requires the plugin and the host to share one acadrust source. The canaries that asserted the old wrong results were flipped against the real-IPC audits, all 60 of which pass with the plugin built: Helix, Light, Underlay, ViewBorder and SectionSymbol now round-trip through DXF, as do the text style flags, the dimension style's text style name, the block description, the table's merged ranges and the leader's annotation link and vectors. Those five kinds move to Complete in the coverage ledger. Two narrower gaps stay pinned. The ATTDEF writer emits no group 280, so `lock_position` is still lost on a DXF save; every other field now survives. A true-colour leader `override_color` cannot be held by DXF group 77, which takes an ACI index, and the DWG writer does not store it. Behaviour change for users: a text style's oblique angle is now written to DXF in degrees, as the format defines it. DXF files written by earlier versions carry radians there and reopen with a much smaller slant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
2.0 KiB
TOML
46 lines
2.0 KiB
TOML
[package]
|
|
name = "ocs_plugin_api"
|
|
version = "0.2.1"
|
|
edition = "2021"
|
|
description = "Stable, dependency-free contract for Open CAD Studio add-on packages: plugin manifest, version handshake, and ribbon/CadModule types."
|
|
license = "GPL-3.0-only"
|
|
|
|
[dependencies]
|
|
# Serde is used unconditionally by the build-time-generated embedded type
|
|
# registry types (`type_registry_types.rs`). The host feature no longer needs
|
|
# to enable it explicitly.
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = { version = "1", optional = true }
|
|
|
|
# Pulled in only by the `host` feature, which adds the `acadrust`-typed
|
|
# `HostApi` runtime surface. The default crate stays dependency-free so engine
|
|
# crates and external tooling can depend on the manifest/ribbon contract cheaply.
|
|
acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "dd1d7bf", optional = true, features = ["serde"] }
|
|
|
|
# Runtime IPC and serialization (host feature only).
|
|
interprocess = { version = "2", optional = true }
|
|
bincode = { version = "1", optional = true }
|
|
serde_bytes = { version = "0.11", optional = true }
|
|
thiserror = { version = "1", optional = true }
|
|
libloading = { version = "0.8", optional = true }
|
|
memmap2 = { version = "0.9", optional = true }
|
|
rkyv = { version = "0.7", features = ["validation", "std"], optional = true }
|
|
getrandom = { version = "0.2", optional = true }
|
|
|
|
[features]
|
|
# Enables the runtime host surface (`HostApi` trait) and the out-of-process
|
|
# plugin runtime. The OpenCADStudio binary turns this on; pure-data consumers
|
|
# leave it off.
|
|
host = ["dep:acadrust", "dep:serde_json", "dep:interprocess", "dep:bincode", "dep:serde_bytes", "dep:thiserror", "dep:libloading", "dep:memmap2", "dep:rkyv", "dep:getrandom"]
|
|
|
|
[build-dependencies]
|
|
serde-reflection = "0.6"
|
|
serde_json = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
cargo-lock = "11"
|
|
# acadrust is scanned at build time to generate the embedded type registry.
|
|
acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "dd1d7bf", features = ["serde"] }
|
|
|
|
[dev-dependencies]
|
|
serde_json = "1"
|