From f777221405cdb90b9f05f82e24eec6f6e0c56dff Mon Sep 17 00:00:00 2001 From: donpat1to Date: Sat, 9 Aug 2025 13:44:21 +0200 Subject: [PATCH] added libs to find installed libs --- WatcherAgent/Cargo.toml | 6 +++++- WatcherAgent/src/hardware/mod.rs | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/WatcherAgent/Cargo.toml b/WatcherAgent/Cargo.toml index e653915..35c2b05 100644 --- a/WatcherAgent/Cargo.toml +++ b/WatcherAgent/Cargo.toml @@ -26,4 +26,8 @@ com = "0.2" widestring = "0.5" [target.'cfg(unix)'.dependencies] -glob = "0.3" \ No newline at end of file +glob = "0.3" +libloading = "0.8" + +[build-dependencies] +pkg-config = { version = "0.3", optional = true } # Für Library-Detektion \ No newline at end of file diff --git a/WatcherAgent/src/hardware/mod.rs b/WatcherAgent/src/hardware/mod.rs index f629912..4f20a62 100644 --- a/WatcherAgent/src/hardware/mod.rs +++ b/WatcherAgent/src/hardware/mod.rs @@ -1,10 +1,10 @@ //use anyhow::Result; use std::error::Error; -mod cpu; -mod disk; -mod gpu; -mod memory; +pub(crate) mod cpu; +pub(crate) mod disk; +pub(crate) mod gpu; +pub(crate) mod memory; pub(crate) mod network; pub use cpu::get_cpu_info;