lib_config 0.2.0

Simple and intuitive API to create and access JSON config files
Documentation

#[derive(Debug, thiserror::Error)]
pub enum Error {
    
    #[error("JSON: {0}")]
    Json(#[from] serde_json::Error),

    #[error("IO: {0}")]
    IO(#[from] std::io::Error),

    #[error("Generic: {0}")]
    Config(&'static str)
}

impl From<&'static str> for Error{
    fn from(value: &'static str) -> Self {
        Self::Config(value)
    }
}