forked from 1b-agent/opencadstudio-upstream
The codec and kernel repositories and crates are renamed opencadcodec and opencadkernel. Inside OCS they are depended on under short keys, so code reads `codec::`, `kernel::` and the new `graph::` (opencadgraph, the node graph engine). File-format and protocol spellings stay as they were: the ACIS product id `acadrust`, the ACADRUST_* switches and the plugin version keys `acadrust_version` / `acadrust_source`. A button left of MCP on the command line opens a translucent node graph over the viewport, with a palette of object, input, math, logic, list, text and geometry nodes added by click or drag. An object node owns drawing entities and its rows are the Properties panel's own rows for them: the single-object page is extracted from refresh_properties as entity_property_sections, values use the control protocol's property_json, and writes go through set_property_value with a property target override, so the panel, MCP and the graph share one read/write path. A list reaching an object row makes one entity per element. Each graph action is one undo step; the canvas pans and zooms. Co-Authored-By: Claude Opus 5.5 <[email protected]>
36 lines
1.3 KiB
TOML
36 lines
1.3 KiB
TOML
# getrandom 0.3 (pulled by ahash via opencadcodec) needs this cfg to select its
|
|
# browser backend on wasm32-unknown-unknown, alongside its `wasm_js` feature
|
|
# (enabled in Cargo.toml for the wasm target). Without it the web build fails
|
|
# with "wasm32-unknown-unknown targets are not supported by default".
|
|
#
|
|
# `-Cstrip=none` overrides the release profile's `strip = true` for the wasm
|
|
# target only: stripping removes the `target_features` custom section, so
|
|
# `wasm-opt` can no longer see that `bulk-memory` is enabled and rejects the
|
|
# module's memory.fill/copy ops ("require bulk memory"). Native release binaries
|
|
# stay stripped; only the wasm keeps its feature section.
|
|
[target.wasm32-unknown-unknown]
|
|
rustflags = [
|
|
'--cfg',
|
|
'getrandom_backend="wasm_js"',
|
|
'-Cstrip=none',
|
|
# The debug UI build has a substantially deeper view-construction stack
|
|
# than the optimized bundle. Keep modal construction from exhausting the
|
|
# WebAssembly stack while developing with `trunk serve`.
|
|
'-Clink-arg=-zstack-size=4194304',
|
|
]
|
|
|
|
[target.x86_64-pc-windows-gnu]
|
|
rustflags = [
|
|
"-Clink-arg=-Wl,--stack,16777216",
|
|
"-Clink-arg=-Wl,--exclude-all-symbols",
|
|
]
|
|
|
|
[target.x86_64-pc-windows-msvc]
|
|
rustflags = [
|
|
"-Clink-arg=/STACK:16777216",
|
|
]
|
|
|
|
[env]
|
|
RUST_MIN_STACK = "8388608"
|
|
|