mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-08-31 20:00:37 +02:00
feat(os): add plugin (#346)
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
This commit is contained in:
co-authored by
Fabian-Lars
parent
bcb42b7343
commit
61e7d6ede5
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user