1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#[cfg(not(any(
    feature = "once_cell_cache",
    feature = "lazy_static_cache",
    feature = "unsafe_cache"
)))]
macro_rules! get_cwd {
    () => {
        std::env::current_dir()?
    };
}

#[cfg(any(feature = "once_cell_cache", feature = "lazy_static_cache"))]
macro_rules! get_cwd {
    () => {
        $crate::CWD.as_path()
    };
}

#[cfg(feature = "unsafe_cache")]
macro_rules! get_cwd {
    () => {
        unsafe { $crate::CWD.as_path() }
    };
}