Louis 5fd249c72d
refactor: deprecate Vulkan external binaries (#6638)
* refactor: deprecate vulkan binary

refactor: clean up vulkan lib

chore: cleanup

chore: clean up

chore: clean up

fix: build

* fix: skip binaries download env

* Update src-tauri/utils/src/system.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src-tauri/utils/src/system.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-29 17:47:59 +07:00

30 lines
590 B
Rust

mod commands;
mod constants;
pub mod cpu;
pub mod gpu;
mod types;
pub mod vendor;
pub use constants::*;
pub use types::*;
use std::sync::OnceLock;
use tauri::Runtime;
static SYSTEM_INFO: OnceLock<SystemInfo> = OnceLock::new();
pub use commands::get_system_info;
/// Initialize the hardware plugin
pub fn init<R: Runtime>() -> tauri::plugin::TauriPlugin<R> {
tauri::plugin::Builder::new("hardware")
.invoke_handler(tauri::generate_handler![
commands::get_system_info,
commands::get_system_usage
])
.build()
}
#[cfg(test)]
mod tests;