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 98b56ef673.
This commit is contained in:
Karim Jerbi committed 2026-09-30 13:48:14 +01:00
1 parent f17279244f
commit 1952b4b0cb
1 file changed
+5 -1
+5 -1
View File
@@ -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 [