use std::path::PathBuf;
#[derive(Debug, thiserror::Error)]
pub enum IoError {
#[error("io error: {0}")]
Io(#[from] std::io::Error),
#[error("parse error: {0}")]
Parse(String),
#[error("feature `{feature}` is required for {context}")]
MissingFeature {
feature: &'static str,
context: &'static str,
},
#[error("unsupported format: {0}")]
UnsupportedFormat(String),
#[error("missing dependency: {0}")]
MissingDependency(PathBuf),
}