ic_wasm/
lib.rs

1#[cfg(feature = "check-endpoints")]
2pub mod check_endpoints;
3pub mod info;
4pub mod instrumentation;
5pub mod limit_resource;
6pub mod metadata;
7#[cfg(feature = "wasm-opt")]
8pub mod optimize;
9pub mod shrink;
10pub mod utils;
11
12#[derive(Debug, thiserror::Error)]
13pub enum Error {
14    #[error("Failed on IO.")]
15    IO(#[from] std::io::Error),
16
17    #[error("Could not parse the data as WASM module. {0}")]
18    WasmParse(String),
19
20    #[error("{0}")]
21    MetadataNotFound(String),
22}