Module analysis

Source
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§

AnalysedFunction
AnalysedFunctionParameter
AnalysedFunctionResult
AnalysedInstance
AnalysedResourceId
AnalysisContext
AnalysisFailure
InterfaceCouldNotBeAnalyzedWarning
NameOptionTypePair
NameTypePair
TypeBool
TypeChr
TypeEnum
TypeF32
TypeF64
TypeFlags
TypeHandle
TypeList
TypeOption
TypeRecord
TypeResult
TypeS8
TypeS16
TypeS32
TypeS64
TypeStr
TypeTuple
TypeU8
TypeU16
TypeU32
TypeU64
TypeVariant
UnsupportedExportWarning

Enums§

AnalysedExport
AnalysedResourceMode
AnalysedType
AnalysisWarning

Type Aliases§

AnalysisResult