1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pub mod info;
pub mod instrumentation;
pub mod limit_resource;
pub mod metadata;
#[cfg(feature = "wasm-opt")]
pub mod optimize;
pub mod shrink;
pub mod utils;

#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("Failed on IO.")]
    IO(#[from] std::io::Error),

    #[error("Could not parse the data as WASM module. {0}")]
    WasmParse(String),

    #[error("{0}")]
    MetadataNotFound(String),
}