Keep Windows runtime bindings target scoped

This commit is contained in:
Meta Vens 2026-08-21 20:33:35 +02:00
commit 0e185b51dd
3 changed files with 5 additions and 1 deletions

View file

@ -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"] }

View file

@ -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};

View file

@ -504,6 +504,7 @@ impl DeepSeekPort {
}
}
#[cfg(windows)]
#[cfg(windows)]
pub fn from_machine_dpapi(path: impl AsRef<std::path::Path>) -> Result<Self> {
Ok(Self::new(crate::windows_secret::unprotect_machine_utf8(