Skip to content

Commit e820a1a

Browse files
fix(ci): gate WFP service hashing imports to Windows
Signed-off-by: oscarmackjr-twg <oscar.mack.jr@gmail.com>
1 parent 3c99562 commit e820a1a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

crates/nono-cli/src/bin/nono-wfp-service.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#[path = "../windows_wfp_contract.rs"]
99
mod windows_wfp_contract;
1010

11-
use sha2::{Digest, Sha256};
1211
use std::io::Read;
1312
use std::process::ExitCode;
1413
use windows_wfp_contract::{
@@ -21,6 +20,9 @@ const PROBE_RUNTIME_ACTIVATION_ARG: &str = "--probe-runtime-activation";
2120
const EXPECTED_DRIVER_BINARY: &str = "nono-wfp-driver.sys";
2221
const MAX_RUNTIME_REQUEST_SIZE: usize = 64 * 1024;
2322

23+
#[cfg(target_os = "windows")]
24+
use sha2::{Digest, Sha256};
25+
2426
#[cfg(target_os = "windows")]
2527
use std::os::windows::ffi::OsStrExt;
2628

0 commit comments

Comments
 (0)