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.
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.
- 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.