Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Merge #1636 into #1706: keep the pixls opt-in, fetch_all takes update

Claude42e60e360285
diff --cc xtask/src/corpus.rs
index be62e6fa6,84754a039..5f9ec78a9
--- a/xtask/src/corpus.rs
+++ b/xtask/src/corpus.rs
@@@ -208,7 -226,16 +234,16 @@@ pub fn test_cmd(args: &[&str]) -> Resul
if crates.is_empty() {
crates = CORPUS_CRATES.iter().map(|s| (*s).to_string()).collect();
}
+ // `--pixls` opts in (and fetches), and a raw change under --changed does too: the raw
+ // corpus tests are not part of the default set until a maintainer decides otherwise.
+ let wants_pixls = ours.contains(&"--pixls") || crates.iter().any(|c| PIXLS_CRATES.contains(&c.as_str())) || raw_changed;
+ if wants_pixls && !crates.iter().any(|c| c == "photocraft-raw") {
+ crates.push("photocraft-raw".to_string());
+ }
+ if wants_pixls {
+ crate::pinned::fetch_pixls(false)?;
+ }
- fetch_all(ours.contains(&"--local"))?;
+ fetch_all(ours.contains(&"--local"), false)?;
let mut c = cargo();
c.args(["test", "--release", "--lib", "--tests"]);
for k in &crates {