use std::path::PathBuf;
#[cfg(unix)]
mod unix;
#[cfg(windows)]
mod windows;
#[cfg(unix)]
use unix as imp;
#[cfg(windows)]
use windows as imp;
pub fn home_dir() -> Option<PathBuf> {
imp::home_dir()
}
pub fn temp_dir() -> PathBuf {
imp::temp_dir()
}
pub fn denied_read_prefixes() -> &'static [&'static str] {
imp::denied_read_prefixes()
}
pub fn shell_command(cmd: &str) -> (&'static str, Vec<String>) {
imp::shell_command(cmd)
}
pub fn shell_tokenize(cmd: &str) -> Result<Vec<String>, String> {
imp::shell_tokenize(cmd)
}
pub fn terminate_process(pid: u32) -> std::io::Result<()> {
imp::terminate_process(pid)
}
pub fn process_alive(pid: u32) -> bool {
imp::process_alive(pid)
}
pub fn rename_overwrite(from: &std::path::Path, to: &std::path::Path) -> std::io::Result<()> {
imp::rename_overwrite(from, to)
}
pub fn lsp_binary_name(base: &str) -> String {
imp::lsp_binary_name(base)
}