#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error(transparent)]
Anyhow(#[from] anyhow::Error),
#[error(transparent)]
BinaryReader(#[from] wasmparser::BinaryReaderError),
#[error("Buffer overflow: {0}, the limit of the binary buffer is 0x6000.")]
BufferOverflow(usize),
#[error(transparent)]
Codegen(#[from] zingen::Error),
#[error("Invalid data offset")]
InvalidDataOffset,
}
pub type Result<T> = std::result::Result<T, Error>;