ipchat 0.0.0

Chat solution for local networks based on WLAN and Router's IP Addresses
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::env::home_dir as std_home_dir;
use std::path::PathBuf;

use anyhow::{Context, Result};

const IPCHAT_HOME_DIR: &str = ".ipchat";

/// Retrieves the home directory path for the IPChat application.
pub fn home_dir() -> Result<PathBuf> {
    let home_dir = std_home_dir().context("Failed to get home directory")?;
    Ok(home_dir.join(IPCHAT_HOME_DIR))
}