mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-06 20:02:16 +00:00
9cd655259d
- Session::execute is a command span; Model::evaluate and each feature computed (by its type) are spans; io's import, export and design read/write too; the STEP reader's topology, pcurves and solid record. - diagnostics.profile (contract + output schema): report, start/stop, reset, Chrome trace file. - A STEP/IGES import's reply carries its own profile while recording. - Every app compiles the profiler in by default (feature `profile`); SOLIDCRAFT_PROFILE=1 starts it. - solidcraft-cli run/eval/bench-open --profile print the table on stderr, --profile-out writes the trace; run --profile works on designs and STEP files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
1.5 KiB
TOML
45 lines
1.5 KiB
TOML
[package]
|
|
name = "solidcraft-cli"
|
|
description = "SolidCraft headless CLI: run command scripts, measure, export, render snapshots, replay oracle recipes"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
default-run = "solidcraft-cli"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[[bin]]
|
|
name = "solidcraft-cli"
|
|
path = "src/main.rs"
|
|
|
|
# Compatibility alias for the CLI's former name: forwards to solidcraft-cli with a deprecation
|
|
# note on stderr. Shipped in every package for at least one release.
|
|
[[bin]]
|
|
name = "solvecraft-cli"
|
|
path = "src/alias.rs"
|
|
|
|
[features]
|
|
default = ["raytrace-cpu", "smlib", "profile"]
|
|
bundled-render-library = ["solidcraft-engine/bundled-render-library"]
|
|
raytrace-cpu = ["solidcraft-engine/raytrace-cpu"]
|
|
# Link SMLib into the kernel (solidcraft-engine/smlib; needs scripts/fetch-smlib.sh). SMLib is the
|
|
# only kernel, so without it the command line models nothing.
|
|
smlib = ["solidcraft-engine/smlib"]
|
|
# The profiler, compiled in so any build can say where its time goes (`--profile`,
|
|
# SOLIDCRAFT_PROFILE=1); it records nothing until asked.
|
|
profile = ["solidcraft-engine/profile"]
|
|
|
|
[dependencies]
|
|
solidcraft-engine = { workspace = true }
|
|
solidcraft-gpu = { workspace = true }
|
|
solidcraft-mcp = { workspace = true }
|
|
log = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
# Snapshot tests decode the pictures to compare them with a tolerance.
|
|
image = { workspace = true }
|
|
# Tests measure meshes at their own tolerances.
|
|
solidcraft-kernel = { workspace = true }
|