mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2026-05-25 23:59:15 +00:00
UI
This commit is contained in:
17
ui/src/lib.rs
Normal file
17
ui/src/lib.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
use std::{env::current_exe, path::PathBuf};
|
||||
|
||||
use once_cell::sync::OnceCell;
|
||||
|
||||
pub mod adapter;
|
||||
pub mod usecase;
|
||||
|
||||
pub static BUFFER: OnceCell<usize> = OnceCell::new();
|
||||
|
||||
pub fn path() -> PathBuf {
|
||||
current_exe()
|
||||
.unwrap_or_default()
|
||||
.as_path()
|
||||
.parent()
|
||||
.unwrap()
|
||||
.to_owned()
|
||||
}
|
||||
Reference in New Issue
Block a user