Expand description
The analysis module contains functionality built on top of the WASM AST to analyze components.
Currently the only functionality it provides is gathering a concise representation of all the exported instances and functions with their signatures.
For this analysis first parse a component::Component with component::Component::from_bytes, then create an analysis::AnalysisContext with analysis::AnalysisContext::new and finally call analysis::AnalysisContext::get_top_level_exports on the newly created context.
This module is optional and can be enabled with the analysis
feature flag. It is enabled by default.
Modules§
- analysed_
type - protobuf
- Protobuf representation of analysis results
- wave
- Wave format support for types.
- wit_
parser
Structs§
- Analysed
Function - Analysed
Function Parameter - Analysed
Function Result - Analysed
Instance - Analysed
Resource Id - Analysis
Context - Analysis
Failure - Interface
Could NotBe Analyzed Warning - Name
Option Type Pair - Name
Type Pair - Type
Bool - TypeChr
- Type
Enum - TypeF32
- TypeF64
- Type
Flags - Type
Handle - Type
List - Type
Option - Type
Record - Type
Result - TypeS8
- TypeS16
- TypeS32
- TypeS64
- TypeStr
- Type
Tuple - TypeU8
- TypeU16
- TypeU32
- TypeU64
- Type
Variant - Unsupported
Export Warning