fn cache_dir() -> Result<PathBuf> {
    let path = ProjectDirs::from("dev", "trunkrs", "trunk")
        .context("failed finding project directory")?
        .cache_dir()
        .to_owned();
    std::fs::create_dir_all(&path).context("failed creating cache directory")?;

    Ok(path)
}
/// Locate the cache dir for trunk and make sure it exists.
Locate the cache dir for trunk and make sure it exists.
Locate the cache dir for trunk and make sure it exists .
fn cache_dir() -> Result<PathBuf> {
    let path = ProjectDirs::from("dev", "trunkrs", "trunk")
        .context("failed finding project directory")?
        .cache_dir()
        .to_owned();
    std::fs::create_dir_all(&path).context("failed creating cache directory")?;
    Ok(path)
}
fn cache_dir ( ) -> Result < PathBuf > { let path = ProjectDirs :: from ( " " , " " , " " ) . context ( " " ) ? . cache_dir ( ) . to_owned ( ) ; std :: fs :: create_dir_all ( & path ) . context ( " " ) ? ; Ok ( path ) }
Locate the cache dir for trunk and make sure it exists.
Locate the cache dir for trunk and make sure it exists .