aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/lib.rs')
-rw-r--r--ui/src/lib.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/ui/src/lib.rs b/ui/src/lib.rs
new file mode 100644
index 0000000..cdfb4f6
--- /dev/null
+++ b/ui/src/lib.rs
@@ -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()
+}