blob: a05f7c8a8e286ccc9b5f45e9fa3d833b1d1dc3d0 [file] [log] [blame]
use std::io;
use std::path::StripPrefixError;
use thiserror::Error;
pub(super) type Result<T, E = Error> = std::result::Result<T, E>;
#[derive(Error, Debug)]
#[error(transparent)]
pub(super) enum Error {
#[error("missing OUT_DIR environment variable")]
MissingOutDir,
#[error("failed to locate target dir")]
TargetDir,
Io(#[from] io::Error),
StripPrefix(#[from] StripPrefixError),
}