Re-exports§
pub use crate::gas_metering::Rules;pub use crate::syscalls::SyscallName;
Modules§
- gas_
metering - This module is used to instrument a Wasm module with gas metering code.
- stack_
limiter - Contains the code for the stack height limiter instrumentation.
- syscalls
- Gear syscalls for programs execution signatures.
Structs§
- BrTable
- Const
Expr - Data
- Element
- Export
- Func
Type - Represents a type of a function in a WebAssembly module.
- Function
- Global
- Global
Type - Represents a global’s type.
- Import
- Instrumentation
Builder - This is an auxiliary builder that allows to instrument WASM module.
- MemArg
- Memory
Type - Represents a memory’s type.
- Module
- Module
Builder - RefType
- A reference type.
- System
Break Code TryFrom Error - The error type returned when a conversion from
i32oru32toSystemBreakCodefails. - Table
- Table
Type - Represents a table’s type.
Enums§
- Block
Type - Represents a block type.
- Element
Items - External
Kind - External types as defined here.
- Instruction
- Instrumentation
Error - WASM module instrumentation error.
- Module
Error - Name
- System
Break Code - System break code for
SyscallName::SystemBreaksyscall. - TypeRef
- Represents a reference to a type definition in a WebAssembly module.
- ValType
- Represents the types of values in a WebAssembly module.
Constants§
- GEAR_
SUPPORTED_ FEATURES - GLOBAL_
NAME_ GAS - Gas global export name in WASM module.
- STACK_
END_ EXPORT_ NAME __gear_stack_endexport is inserted by wasm-proc or wasm-builder, it indicates the end of program stack memory.- STACK_
HEIGHT_ EXPORT_ NAME __gear_stack_heightexport is inserted by gear-wasm-instrument, it points to stack height global that is used bystack_limiter.