aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/src/lib.rs
blob: cdfb4f62561455416c1f503d2969f0252a8a2901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()
}