hyprshell-core-lib 0.5.4

hyprshell is a Rust-based GUI designed to enhance window management in hyprland
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    let path = option_env!("HYPRSHELL_SOCAT_PATH")
        .and_then(|path| Some(path.to_string()))
        .or_else(|| {
            which::which("socat")
                .map(|path| path.to_string_lossy().to_string())
                .ok()
        })
        .expect("`socat` command not found. Please ensure it is installed and available in PATH or set it using HYPRSHELL_SOCAT_PATH.");

    println!("cargo:rustc-env=SOCAT_PATH={}", path);
}