Commit Graph
4 Commits
Author SHA1 Message Date
dotCooCoo 529571a92a craft-raster3d: rayon is optional behind a parallel feature
rayon becomes an optional dependency behind a new parallel feature,
off by default, as in craft-texture, craft-dds and craft-jpeg. The
default build is serial, uses no rayon and builds for
wasm32-unknown-unknown. The craft facade forwards it as
raster3d-parallel.

- With parallel, bands of rows, resolved rows, encoded pixels and
  shadow maps run on several threads with rayon, as before. Without
  it, the same per-item code runs in order on one thread, through
  small helpers in lib.rs. Both stop at the first error.
- Outputs are the same either way. When several bands or shadow maps
  fail, the serial build returns the first one's error and the
  threaded build the error of one of them, and the needed count of
  TooMuchWork can differ.
- Targets, images, shadow maps and the working buffers that grow with
  the raster or the vertex or triangle count are reserved fallibly,
  and a failed reservation returns the new RenderError::OutOfMemory.
- rayon is added as a dev-dependency. The differential tests in
  tests/it/reference/effectcraft use it.
- CI's default-feature test pass also runs craft-raster3d, so the
  serial build is tested.
- The README and the crate docs describe the feature.
2026-11-29 14:28:00 -08:00
aiongg 6387c9ec92 Workspace gate: shard 2 also runs craft-draw's tests
With craft-ui-contract optimised, shard 2 (the audit crates, plain and audited)
ends well before shard 1. craft-draw's tests (about 280 test-s in CI, most of
them suite trials) move to shard 2 and run plainly; the audited pass keeps to
the audit crates.
2026-11-25 12:24:31 +00:00
aiongg 75e3a0c33a Workspace gate: leg 1 leaves the audit crates to leg 2, leg 3 builds only craft-image-codecs, design-lint at opt-level 2 2026-11-25 01:17:12 +00:00
aiongg 06675d0d55 CI: replay audit in a parallel shard from one build; test builds use cl's profile overrides
- scripts/ci-workspace-tests.sh holds every Workspace test step. When the selection reaches a
  replay-audit crate, the Linux leg builds once in gate.yml's build job, writes three nextest
  archives (every selected test, the audit's UI crates, the default-feature crates), runs the
  doctests, and three shard legs run the archives in parallel. Any other selection, and every
  macOS and Windows leg, builds and runs in one leg as before.
- .config/cargo-dev.toml is the dev-profile tuning tools/cl passes locally (dependencies at
  opt-level 2, craft-theme/behavior/proof at 1, lto off); every CI test build passes it too, with
  .config/cargo-ci.toml adding the numeric crates at opt-level 1. The Workspace legs' cache entries
  are named after a hash of both files. Cargo.toml's profiles are unchanged.
- nightly.yml builds through the same script and also starts the full tests on next.
2026-11-24 19:58:04 +00:00