From 0dd0cf6f370abb602399b94711e6eff1002ddfcf Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Thu, 22 Sep 2022 16:31:42 +0200 Subject: Import OS specifc libraries only on that OS --- src-tauri/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 9856394d..2ea9571b 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -1,8 +1,12 @@ use std::env; use anyhow::{anyhow, Context, Result}; + +#[cfg(target_os = "windows")] use powershell_script::PsScriptBuilder; +#[cfg(target_os = "windows")] use regex::Regex; + use serde::{Deserialize, Serialize}; use sysinfo::SystemExt; use zip::ZipArchive; -- cgit v1.2.3