Crate wit_parser

Source

Modules§

abi
decoding

Structs§

ArchitectureSize
Architecture specific measurement of position, the combined amount in bytes is bytes + pointers * core::mem::size_of::<*const u8>()
Case
Docs
ElementInfo
Information per structure element
Enum
EnumCase
Field
Flag
Flags
Function
IncludeName
Interface
InvalidTransitiveDependency
An error that can be returned during “world elaboration” during various Resolve operations.
LiveTypes
Package
A WIT package within a Resolve.
PackageMetadata
Represents serializable doc comments parsed from a WIT package.
PackageName
A structure used to keep track of the name of a package, containing optional information such as a namespace and version information.
PackageSourceMap
All the sources used during resolving a directory or path.
Record
Remap
Structure returned by Resolve::merge which contains mappings from old-ids to new-ids after the merge.
Resolve
Representation of a fully resolved set of WIT packages.
Result_
SizeAlign
Collect size and alignment for sub-elements of a structure
SourceMap
A listing of source files which are used to get parsed into an [UnresolvedPackage].
Tuple
TypeDef
UnresolvedPackage
Representation of a parsed WIT package which has not resolved external dependencies yet.
UnresolvedPackageGroup
Tracks a set of packages, all pulled from the same group of WIT source files.
Variant
World

Enums§

Alignment
Architecture specific alignment
AstItem
FlagsRepr
FunctionKind
Handle
Int
LiftLowerAbi
Possible lift/lower ABI choices supported when mangling names.
Mangling
Possible forms of name mangling that are supported by this crate.
ManglingAndAbi
Combination of Mangling and LiftLowerAbi.
ParsedUsePath
ResourceIntrinsic
Intrinsic definitions to go with WasmImport::ResourceIntrinsic which also goes with Resolve::wasm_import_name.
Results
ResultsTypeIter
Stability
Representation of the stability attributes associated with a world, interface, function, or type.
Type
TypeDefKind
TypeOwner
WasmExport
Different kinds of exports that can be passed to Resolve::wasm_export_name to export from core wasm modules.
WasmExportKind
Indicates whether a function export is a normal export, a post-return function, or a callback function.
WasmImport
Possible imports that can be passed to Resolve::wasm_import_name.
WorldItem
WorldKey
The key to the import/export maps of a world. Either a kebab-name or a unique interface.

Traits§

TypeIdVisitor
Helper trait to walk the structure of a type and visit all TypeIds that it refers to, possibly transitively.

Functions§

align_to_arch
Increase val to a multiple of align, with special handling for pointers; align must be a power of two or Alignment::Pointer
parse_use_path
validate_id
Checks if the given string is a legal identifier in wit.

Type Aliases§

InterfaceId
PackageId
Params
TypeId
WorldId