pub struct WasmInfo {
pub imports: Vec<String>,
pub ei_check: bool,
pub memory_grow_flag: bool,
pub report: ReportCreator,
pub call_graph: HashMap<usize, HashSet<usize>>,
pub write_index_functions: HashSet<usize>,
pub view_endpoints: HashMap<String, usize>,
}
Fields§
§imports: Vec<String>
§ei_check: bool
§memory_grow_flag: bool
§report: ReportCreator
§call_graph: HashMap<usize, HashSet<usize>>
§write_index_functions: HashSet<usize>
§view_endpoints: HashMap<String, usize>
Implementations§
Source§impl WasmInfo
impl WasmInfo
pub fn extract_wasm_info( output_wasm_path: &str, extract_imports_enabled: bool, check_ei: &Option<EIVersion>, view_endpoints: Vec<&str>, ) -> WasmInfo
pub fn process_imports( &mut self, import_section: ImportSectionReader<'_>, import_extraction_enabled: bool, )
pub fn detect_write_operations_in_views(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WasmInfo
impl RefUnwindSafe for WasmInfo
impl Send for WasmInfo
impl Sync for WasmInfo
impl Unpin for WasmInfo
impl UnwindSafe for WasmInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more