diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-22 16:31:42 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-22 16:31:42 +0200 |
commit | 0dd0cf6f370abb602399b94711e6eff1002ddfcf (patch) | |
tree | 1f4953dc5b5c00967572025bcc03505ad6aa8311 /src-tauri/src | |
parent | 07d671a152916b52fbd517a872d9ccb73694383f (diff) | |
download | FlightCore-0dd0cf6f370abb602399b94711e6eff1002ddfcf.tar.gz FlightCore-0dd0cf6f370abb602399b94711e6eff1002ddfcf.zip |
Import OS specifc libraries only on that OS
Diffstat (limited to 'src-tauri/src')
-rw-r--r-- | src-tauri/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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; |