From 0e185b51ddc063b80b7c0f1ccd6a482510de1c6e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 21 Aug 2026 20:33:35 +0200 Subject: [PATCH] Keep Windows runtime bindings target scoped --- crates/ghostlight-dungeon/Cargo.toml | 4 +++- crates/ghostlight-dungeon/src/lib.rs | 1 + crates/ghostlight-dungeon/src/model.rs | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/ghostlight-dungeon/Cargo.toml b/crates/ghostlight-dungeon/Cargo.toml index 79629ec..b12957c 100644 --- a/crates/ghostlight-dungeon/Cargo.toml +++ b/crates/ghostlight-dungeon/Cargo.toml @@ -31,9 +31,11 @@ tower-http.workspace = true tracing.workspace = true tracing-subscriber.workspace = true uuid.workspace = true -windows.workspace = true zeroize.workspace = true +[target.'cfg(windows)'.dependencies] +windows.workspace = true + [dev-dependencies] tempfile = "3" tower = { version = "0.5", features = ["util"] } diff --git a/crates/ghostlight-dungeon/src/lib.rs b/crates/ghostlight-dungeon/src/lib.rs index 6b1c45a..81865d0 100644 --- a/crates/ghostlight-dungeon/src/lib.rs +++ b/crates/ghostlight-dungeon/src/lib.rs @@ -22,6 +22,7 @@ pub mod surface; pub mod turn; pub mod vault; #[cfg(windows)] +#[cfg(windows)] pub mod windows_secret; pub use kernel::{KernelError, WorldKernel}; diff --git a/crates/ghostlight-dungeon/src/model.rs b/crates/ghostlight-dungeon/src/model.rs index 64719bc..3cfbb45 100644 --- a/crates/ghostlight-dungeon/src/model.rs +++ b/crates/ghostlight-dungeon/src/model.rs @@ -504,6 +504,7 @@ impl DeepSeekPort { } } + #[cfg(windows)] #[cfg(windows)] pub fn from_machine_dpapi(path: impl AsRef) -> Result { Ok(Self::new(crate::windows_secret::unprotect_machine_utf8(