9f5ac92faa
* claim: #7168 * Saved model cache: keep fast opening after an update (#7168) The model cache was read only by the exact build that wrote it (same app version and commit), so every update evaluated every design again on its first open. It is now keyed by the evaluation source instead: a digest of the committed source the model is computed from (doc and the workspace crates it is built from, the patched truck crates, locked external dependencies, workspace build settings without the version, and the cache reader), with the platform. An update that changed none of that opens designs from their cache; one that changed any of it evaluates them again, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
1.5 KiB
TOML
46 lines
1.5 KiB
TOML
[package]
|
|
name = "solidcraft-io"
|
|
description = "SolidCraft file formats: designs (JSON), STL, OBJ, STEP, IGES, 3MF and glTF, and FreeCAD/Rhino import"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
# Tests only: trust a model cache even when the build has no git commit.
|
|
trust-unknown-source = []
|
|
|
|
[dependencies]
|
|
solidcraft-geom = { workspace = true }
|
|
solidcraft-kernel = { workspace = true }
|
|
solidcraft-doc = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
log = { workspace = true }
|
|
zip = { workspace = true }
|
|
quick-xml = { workspace = true }
|
|
gltf = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true, features = ["raw_value"] }
|
|
sha2 = { workspace = true }
|
|
chardetng = { workspace = true }
|
|
encoding_rs = { workspace = true }
|
|
# FreeCAD and Rhino import (pure Rust, so the browser build has it too).
|
|
cadmpeg-core = { workspace = true }
|
|
cadmpeg-ir = { workspace = true }
|
|
cadmpeg-registry = { workspace = true }
|
|
|
|
# The model cache's key (build.rs).
|
|
[build-dependencies]
|
|
sha2 = { workspace = true }
|
|
|
|
# A plain fsync where a network share refuses Apple's full flush (src/safe_write.rs); already in
|
|
# the tree through tempfile.
|
|
[target.'cfg(target_vendor = "apple")'.dependencies]
|
|
rustix = { version = "1", default-features = false, features = ["std", "fs"] }
|
|
|
|
# The computer's name for a design's lock file (src/design_lock.rs; the browser keeps no lock files).
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
gethostname = { workspace = true }
|