mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-22 00:20:58 +00:00
232efd2051
Store sheet sketches in paper millimetres and route supported sketch commands through the shared store and drawing-local edit/history boundary. Use one paper scene for cached display and SVG/PNG export. Preserve deferred marks through close/reopen without retaining the source model, reject unsupported centerlines and equations before publication, and paint a completed terminal sketch step in the same frame. Preserve current drawing annotations, source state and the separate paper camera. Keep the integrated drawing UI on shared kit controls and existing view panels, localize built-in theme labels, and make current UI regression fixtures explicit. Refs #7082, #5425 and #860.
85 lines
3.0 KiB
TOML
85 lines
3.0 KiB
TOML
[package]
|
|
name = "solidcraft-engine"
|
|
description = "SolidCraft engine: the session, the command registry (everything is a command), undo/redo and selection"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
default = ["plugins"]
|
|
plugins = ["dep:craft-plugin-wasm"]
|
|
# Optional authored texture/HDR bytes; the command registry and metadata remain available.
|
|
bundled-render-library = []
|
|
raytrace-cpu = ["solidcraft-render/raytrace-cpu"]
|
|
# Turns on the parameter-contract audit recorder (`SOLIDCRAFT_PARAM_AUDIT`, see
|
|
# `src/schema/record.rs`), for checking a new contract against the whole test suite.
|
|
param-audit = []
|
|
solver-profiling = ["solidcraft-sketch/solver-profiling"]
|
|
# Compile the profiler in (solidcraft-profile/enabled): every app turns it on by default, so any
|
|
# build can be profiled; it records only once switched on (SOLIDCRAFT_PROFILE=1, the CLI's
|
|
# --profile, the app's preference, diagnostics.profile).
|
|
profile = ["solidcraft-profile/enabled"]
|
|
|
|
[[example]]
|
|
name = "sketch_analysis_bench"
|
|
required-features = ["solver-profiling"]
|
|
|
|
[[example]]
|
|
name = "sketch_drag_bench"
|
|
required-features = ["solver-profiling"]
|
|
|
|
[[example]]
|
|
name = "sketch_target_bench"
|
|
required-features = ["solver-profiling"]
|
|
|
|
[dependencies]
|
|
craft-plugin = { workspace = true }
|
|
solidcraft-viewport = { workspace = true }
|
|
solidcore-record = { workspace = true }
|
|
solidcore-ops = { workspace = true }
|
|
solidcraft-color = { workspace = true }
|
|
solidcraft-control = { workspace = true }
|
|
solidcraft-geom = { workspace = true }
|
|
solidcraft-sketch = { workspace = true }
|
|
solidcraft-kernel = { workspace = true }
|
|
solidcraft-doc = { workspace = true }
|
|
solidcraft-io = { workspace = true }
|
|
solidcraft-render = { workspace = true }
|
|
solidcraft-profile = { workspace = true }
|
|
# reference pictures for inspect.compare_picture (PNG and JPEG decode, PNG encode)
|
|
image = { workspace = true, features = ["jpeg"] }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
toml_edit = "0.25"
|
|
schemars = { workspace = true }
|
|
serde_path_to_error = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
log = { workspace = true }
|
|
web-time = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
solidcraft-profile = { workspace = true, features = ["enabled"] }
|
|
# Model-cache tests also run in a source tarball build (no git commit).
|
|
solidcraft-io = { workspace = true, features = ["trust-unknown-source"] }
|
|
# Normal CI exercises profiling assertions without enabling the production feature.
|
|
solidcraft-sketch = { workspace = true, features = ["solver-profiling"] }
|
|
|
|
[[example]]
|
|
name = "render_resource_workflow"
|
|
required-features = ["raytrace-cpu"]
|
|
|
|
[[example]]
|
|
name = "wood_texture_workflow"
|
|
required-features = ["raytrace-cpu"]
|
|
|
|
[target.'cfg(any(target_arch = "x86_64", target_arch = "aarch64"))'.dependencies]
|
|
# Component-model sandbox; no WASI, cache deserialization, network or process imports.
|
|
craft-plugin-wasm = { workspace = true, optional = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
|
wat = "1"
|