waterui-cli 0.4.0

Cross-platform tooling for WaterUI applications
Documentation
1
2
3
4
5
6
7
8
use std::path::{Path, PathBuf};

use eyre::{Result, WrapErr};

pub fn canonicalize(path: &Path) -> Result<PathBuf> {
    dunce::canonicalize(path)
        .wrap_err_with(|| format!("Failed to canonicalize path: {}", path.display()))
}