#![warn(missing_docs, rust_2018_idioms)]
pub mod assets;
pub mod config;
pub mod html;
pub mod platform;
#[derive(Debug, Clone)]
pub struct PackageInfo {
pub name: String,
pub version: String,
}
impl PackageInfo {
pub fn package_name(&self) -> String {
self.name.clone()
}
}
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
#[error("Unable to determine target-architecture")]
Architecture,
#[error("Unable to determine target-os")]
Os,
#[error("Unable to determine target-environment")]
Environment,
#[error("Unsupported platform for reading resources")]
UnsupportedPlatform,
#[error("Could not get parent process")]
ParentProcess,
#[error("Could not get parent PID")]
ParentPid,
#[error("Could not get child process")]
ChildProcess,
#[error("{0}")]
Io(#[from] std::io::Error),
}