Modules§
Structs§
- Architecture specific measurement of position, the combined amount in bytes is
bytes + pointers * core::mem::size_of::<*const u8>()
- Information per structure element
- An error that can be returned during “world elaboration” during various
Resolve
operations. - A WIT package within a
Resolve
. - Represents serializable doc comments parsed from a WIT package.
- A structure used to keep track of the name of a package, containing optional information such as a namespace and version information.
- All the sources used during resolving a directory or path.
- Structure returned by
Resolve::merge
which contains mappings from old-ids to new-ids after the merge. - Representation of a fully resolved set of WIT packages.
- Collect size and alignment for sub-elements of a structure
- A listing of source files which are used to get parsed into an [
UnresolvedPackage
]. - Representation of a parsed WIT package which has not resolved external dependencies yet.
- Tracks a set of packages, all pulled from the same group of WIT source files.
Enums§
- Architecture specific alignment
- Possible lift/lower ABI choices supported when mangling names.
- Possible forms of name mangling that are supported by this crate.
- Combination of
Mangling
andLiftLowerAbi
. - Intrinsic definitions to go with
WasmImport::ResourceIntrinsic
which also goes withResolve::wasm_import_name
. - Representation of the stability attributes associated with a world, interface, function, or type.
- Different kinds of exports that can be passed to
Resolve::wasm_export_name
to export from core wasm modules. - Indicates whether a function export is a normal export, a post-return function, or a callback function.
- Possible imports that can be passed to
Resolve::wasm_import_name
. - The key to the import/export maps of a world. Either a kebab-name or a unique interface.
Traits§
- Helper trait to walk the structure of a type and visit all
TypeId
s that it refers to, possibly transitively.
Functions§
- Increase
val
to a multiple ofalign
, with special handling for pointers;align
must be a power of two orAlignment::Pointer
- Checks if the given string is a legal identifier in wit.