From 1952b4b0cbba05956849eea8e3fef35ce5d3cb75 Mon Sep 17 00:00:00 2001 From: Karim Jerbi Date: Wed, 30 Sep 2026 13:48:14 +0100 Subject: [PATCH] fix(plugin_api): gate hatch validation test on host feature Commit 98b56ef6 ('Complete Hatch host model coverage') added the hatch_geometry_and_boundaries_are_validated test without the #[cfg(feature = host)] guard, and commit f537aff7 imported codec directly instead of through crate::host::codec. This broke cargo test --workspace with 20 compilation errors because codec and the canvas validation helpers are only compiled when the host feature is active. Fixes regression from commit 98b56ef673a8377faead7508a55898209d1a4103. --- crates/ocs_plugin_api/src/entity_coverage.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/ocs_plugin_api/src/entity_coverage.rs b/crates/ocs_plugin_api/src/entity_coverage.rs index 276eba7f4..4d0a0f810 100644 --- a/crates/ocs_plugin_api/src/entity_coverage.rs +++ b/crates/ocs_plugin_api/src/entity_coverage.rs @@ -3412,9 +3412,13 @@ mod tests { .contains("no whitespace") ); } + #[cfg(feature = "host")] #[test] fn hatch_geometry_and_boundaries_are_validated() { - use codec::entities::hatch::{BoundaryEdge, BoundaryPath, LineEdge}; + use crate::host::codec::{ + self, + entities::hatch::{BoundaryEdge, BoundaryPath, LineEdge}, + }; let mut hatch = codec::entities::Hatch::new(); let mut path = BoundaryPath::new(); for (start, end) in [