Skip to main content

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;
7pub mod shrink;
8pub mod utils;
9
10#[derive(Debug, thiserror::Error)]
11pub enum Error {
12    #[error("Failed on IO.")]
13    IO(#[from] std::io::Error),
14
15    #[error("Could not parse the data as WASM module. {0}")]
16    WasmParse(String),
17
18    #[error("{0}")]
19    MetadataNotFound(String),
20}