riffu 4.0.1

" This crate provides utilities for reading and writing RIFF formatted files. A fork of the original library that provides an option to either eagerly or lazily read into the file.
Documentation
#[derive(Debug)]
pub enum RiffError {
    InsufficientBytes,
    Other(Box<dyn std::error::Error>),
}

macro_rules! impl_error {
    ( $error : ty ) => {
        impl From<$error> for RiffError {
            /// Performs the conversion.
            fn from(v: $error) -> Self {
                RiffError::Other(Box::new(v))
            }
        }
    };
}

impl_error!(std::array::TryFromSliceError);
impl_error!(std::io::Error);

/// A convenient `Result` type.
pub type RiffResult<T> = Result<T, RiffError>;