-
Notifications
You must be signed in to change notification settings - Fork 0
Rust Diff
Optional fast pixel-diff for visual regression (zyvor-diff). Deep: rust/README.md.
make rust
# → rust/target/release/zyvor-diffOverride path: ZYVOR_DIFF_BINARY=/path/to/zyvor-diff.
# .env
ENABLE_REGRESSION=true
ENABLE_RUST_PROCESSOR=truePython bridge: agents/regression/rust_bridge.py (auto-finds release/debug builds).
zyvor-diff \
--baseline screenshots/baselines/homepage-hero.png \
--current screenshots/current/homepage-hero.png \
--diff-output screenshots/diffs/diff-homepage-hero.png \
--threshold 1.0Prints JSON to stdout; non-zero exit when over threshold. Mismatched sizes → resize current to baseline before compare.
Note: diff_percent counts any changed pixel (vs Pillow intensity-weighted) — thresholds may differ slightly.
| Use Rust | Stick with Pillow |
|---|---|
| Large baseline suites / CI time | Small runs, no Rust toolchain |
ENABLE_RUST_PROCESSOR=true in k8s image that includes the binary |
Default local install without make rust
|
Related: Visual Regression · Autofix and Regression
Start: Home · Getting Started · Tutorials · Workflows · Admin · Dashboard
Tutorials: Spec→Test · NL · GitHub · Coverage · Visual · Notify · External CI · Agent CI · zyvor.dev · Specs
Build: Architecture · Config · Authoring · Structure · Multi-browser · Rust
Actions: Mission Control · Journeys · API/Auth · Probes · Schedules · Ask Zyvor · Autofix
Ship: API · Webhooks · Security · CI/CD · Deploy · Releases · Enterprise
More: Troubleshoot · FAQ · Glossary · Contributing · Demos · Docs
Guides