Scaffold the new config module

This commit is contained in:
2025-07-06 17:28:11 -05:00
parent 8eacb510a2
commit 075a2ee921
2 changed files with 20 additions and 0 deletions

19
src/config.rs Normal file
View File

@@ -0,0 +1,19 @@
pub type Result<T> = core::result::Result<T, Error>;
#[derive(Debug)]
pub enum Error {}
impl core::fmt::Display for Error{
fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
// FIXME: Print a nice output, don't just reuse the Debug impl
write!(fmt, "{self:?}")
}
}
impl std::error::Error for Error {}
#[cfg(test)]
mod tests {
use super::*;
}

View File

@@ -2,6 +2,7 @@ use serde::{Deserialize, Serialize};
pub mod api; pub mod api;
pub mod cli; pub mod cli;
pub mod config;
pub mod structs; pub mod structs;
#[derive(Debug, Deserialize, Serialize)] #[derive(Debug, Deserialize, Serialize)]