ic_wasm/lib.rs
1pub mod info;
2pub mod instrumentation;
3pub mod limit_resource;
4pub mod metadata;
5#[cfg(feature = "wasm-opt")]
6pub mod optimize;
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}