VectorCraft: An open-source, vector art tool written by scratch in pure Rust
xtask ci: test vectorcraft-text without its bundled fonts
Lucas Leroux2abc1d61f754
diff --git a/xtask/src/main.rs b/xtask/src/main.rsindex 7aa6117da..65f5ac5a1 100644--- a/xtask/src/main.rs+++ b/xtask/src/main.rs@@ -28,7 +28,7 @@ commands:pdf-deps verify immutable shared PDF writer and patched Krilla sourceslayers enforce the crate dependency layering (plan/architecture.md §3)wasm cargo check --target wasm32-unknown-unknown for the wasm-safe crates and the web app- ci fmt --check, clippy -D warnings, test, pdf-deps, assets, brands, layers, wasm (stops at first failure)+ ci fmt --check, clippy -D warnings, test, no-bundled-fonts, pdf-deps, assets, brands, layers, wasm (stops at first failure)corpus [--download] [--affinity]show where test corpora live; --download fetches PngSuite into corpus/pngsuite,--affinity the pinned public Affinity documents into corpus/affinity@@ -203,6 +203,15 @@ fn cmd_ci() -> Result<(), String> {run(c, "cargo test --workspace")}),),+ (+ "no-bundled-fonts",+ Box::new(|| {+ // vectorcraft-text as embedders that bring their own fonts build it.+ let mut c = cargo();+ c.args(["test", "-p", "vectorcraft-text", "--no-default-features", "--test", "without_bundled_fonts"]);+ run(c, "cargo test -p vectorcraft-text --no-default-features --test without_bundled_fonts")+ }),+ ),("pdf-deps", Box::new(|| pdf_deps::run(&root()))),("assets", Box::new(|| assets::run(&root()))),("brands", Box::new(|| brands::run(&root()))),