From 1fdbc2729420c0a98dd4b2e266cbaf823c2132e2 Mon Sep 17 00:00:00 2001 From: Garret Buell Date: Sat, 14 Nov 2026 09:11:28 -0800 Subject: [PATCH] helios: import driver::Access in the Windows host allocator Helios does not compile on Windows with the runtime-core feature, which flare/Cargo.toml enables for every Flare build. The Windows host-backed VMM allocator, NativeResources::allocate_host in helios/src/runtime_core/host.rs, imports Access from the runtime_core module. runtime_core imports only the driver types its own code uses, and Access is not among them, so the import fails with E0432 (unresolved import `super::Access`). Linux builds do not compile this function, which is why the defect does not appear there. The allocator now imports Access from runtime_core::driver, where the type is defined. The other imports and the allocator's behavior are unchanged. On Windows 11 with MSVC and Rust 1.100.0, `cargo check --manifest-path helios/Cargo.toml --features runtime-core` fails with E0432 at 7006928 and passes with this change. No test in this change exercises Windows host allocation at runtime. Design-Signed-Off-By: Claude Opus 5.5 (Claude Code); design-review=ed22 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Garret Buell --- helios/src/runtime_core/host.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helios/src/runtime_core/host.rs b/helios/src/runtime_core/host.rs index a69c4e725..4d4c7189b 100644 --- a/helios/src/runtime_core/host.rs +++ b/helios/src/runtime_core/host.rs @@ -42,7 +42,8 @@ fn ranges( #[cfg(windows)] impl super::NativeResources { pub(super) unsafe fn allocate_host(&mut self, core: &super::Core) -> Result<()> { - use super::{Access, AllocationProperties, Location, Memory}; + use super::driver::Access; + use super::{AllocationProperties, Location, Memory}; if !core .allocations