Keep Windows runtime bindings target scoped
This commit is contained in:
parent
f12de09d00
commit
0e185b51dd
3 changed files with 5 additions and 1 deletions
|
|
@ -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"] }
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue