Skip to main content

cargo_advent/
lib.rs

1use crate::functions::generate_project::GenerateProjectError;
2use thiserror::Error;
3
4pub mod context;
5pub mod functions;
6
7pub type AdventResult<T> = Result<T, AdventError>;
8
9#[derive(Debug, Error)]
10pub enum AdventError {
11    #[error(transparent)]
12    GenerateProjectError(#[from] GenerateProjectError),
13    #[error(".env file exists but could not be read: {0}")]
14    EnvLoadError(String),
15}