feat(os): add plugin (#346)

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
This commit is contained in:
Lucas Fernandes Nogueira
2023-05-08 13:39:54 -03:00
committed by GitHub
co-authored by Fabian-Lars
parent bcb42b7343
commit 61e7d6ede5
19 changed files with 809 additions and 154 deletions
+26
View File
@@ -0,0 +1,26 @@
use std::path::PathBuf;
#[tauri::command]
pub fn platform() -> &'static str {
crate::platform()
}
#[tauri::command]
pub fn version() -> String {
crate::version().to_string()
}
#[tauri::command]
pub fn kind() -> String {
crate::kind().to_string()
}
#[tauri::command]
pub fn arch() -> &'static str {
crate::arch()
}
#[tauri::command]
pub fn tempdir() -> PathBuf {
crate::tempdir()
}