Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

Merge PR #1135 (rebased)

Brandon Thomas9ca113defaab
diff --cc xtask/src/main.rs
index 8dc05c977,12ea881e8..d10bdbd3d
--- a/xtask/src/main.rs
+++ b/xtask/src/main.rs
@@@ -33,9 -34,14 +34,13 @@@ commands
web [--serve [port]] [--dev]
build the browser app (apps/lightcraft-web) into <target>/web-site/;
--serve serves it on http://127.0.0.1:<port> (default 8080)
- ci fmt --check, clippy -D warnings, heif, test, parity refs, layers, assets, wasm (stops at first failure)
+ ci [--hardware] [--summary-md]
+ fmt --check, clippy -D warnings, heif, test, GPU probe, parity refs, layers, assets, wasm
+ (stops at first failure); writes target/ci/report.json (machine, GPU adapters, data,
+ steps, skipped tests) and target/ci/summary.md; --hardware also runs the GPU tests on
+ every backend with a hardware adapter; --summary-md prints the Markdown summary
- corpus [--download [nikon]]
- show where test corpora live; --download fetches PngSuite and CC0 raw samples (raw.pixls.us) into corpus/ and checks their sha256;
- --download nikon fetches the Nikon survey's 138 CC0 samples (docs/nikon-bodies/samples.json, ~2.7 GB)
+ corpus [--download]
+ show where test corpora live; --download fetches PngSuite and CC0 raw samples (raw.pixls.us) into corpus/ and checks their sha256
stats [--exact] count tests and lines per crate (--exact: ask the test harness via `-- --list`)
raw-frame [--json] FILE…
measure where each raw's embedded camera JPEG sits in its sensor data, which edge bands hold no
@@@ -56,8 -62,8 +61,8 @@@ fn main() -> ExitCode
Some("parity") => parity::run(&root(), rest.contains(&"--write")),
Some("wasm") => cmd_wasm(),
Some("web") => web::run(&rest),
- Some("ci") => cmd_ci(),
+ Some("ci") => cmd_ci(&rest),
- Some("corpus") => cmd_corpus(rest.contains(&"--download"), rest.contains(&"nikon")),
+ Some("corpus") => cmd_corpus(rest.contains(&"--download")),
Some("stats") => stats::run(&root(), rest.contains(&"--exact")),
Some("raw-frame") => cmd_raw_frame(&rest),
Some("-h" | "--help" | "help") | None => {