Expand description
Internal dependency of Wasmtime and Cranelift that defines types for WebAssembly.
Re-exports§
pub use wasmparser;
Macros§
- wasm_
unsupported - Return an
Err(WasmError::Unsupported(msg))wheremsgthe string built by callingformat!on the arguments to this macro.
Structs§
- Data
Index - Index type of a passive data segment inside the WebAssembly module.
- Defined
Func Index - Index type of a defined function inside the WebAssembly module.
- Defined
Global Index - Index type of a defined global inside the WebAssembly module.
- Defined
Memory Index - Index type of a defined memory inside the WebAssembly module.
- Defined
Table Index - Index type of a defined table inside the WebAssembly module.
- Elem
Index - Index type of a passive element segment inside the WebAssembly module.
- Func
Index - Index type of a function (imported or defined) inside the WebAssembly module.
- Global
- A WebAssembly global.
- Global
Index - Index type of a global variable (imported or defined) inside the WebAssembly module.
- Memory
- WebAssembly linear memory.
- Memory
Index - Index type of a linear memory (imported or defined) inside the WebAssembly module.
- Owned
Memory Index - Index type of a defined memory inside the WebAssembly module.
- Signature
Index - Index type of a signature (imported or defined) inside the WebAssembly module.
- Table
- WebAssembly table.
- Table
Index - Index type of a table (imported or defined) inside the WebAssembly module.
- Tag
- WebAssembly event.
- TagIndex
- Index type of an event inside the WebAssembly module.
- Type
Index - Index type of a type inside the WebAssembly module.
- Wasm
Func Type - WebAssembly function type – equivalent of
wasmparser’s FuncType.
Enums§
- Entity
Index - An index of an entity.
- Entity
Type - A type of an item in a wasm module where an item is typically something that can be exported.
- Global
Init - Globals are initialized via the
constoperators or by referring to another import. - Wasm
Error - A WebAssembly translation error.
- Wasm
Type - WebAssembly value type – equivalent of
wasmparser’s Type.
Type Aliases§
- Wasm
Result - A convenient alias for a
Resultthat usesWasmErroras the error type.