distrib-ruby 0.0.1

Distrib helps you distribute your software.
Documentation
// This is free and unencumbered software released into the public domain.

use alloc::{
    boxed::Box,
    string::{String, ToString},
};
use thiserror::Error;

#[derive(Debug, Error)]
pub enum LoadGemspecError {
    #[error(transparent)]
    Other(#[from] Box<dyn core::error::Error>),
}

#[cfg(feature = "std")]
impl From<std::io::Error> for LoadGemspecError {
    fn from(error: std::io::Error) -> Self {
        Self::Other(error.into())
    }
}

impl From<serde_norway::Error> for LoadGemspecError {
    fn from(error: serde_norway::Error) -> Self {
        Self::Other(error.into())
    }
}