Expand description
Restricted .hal interface contracts for portable Wasm extension bindings.
Sources are parsed as data with the Hara reader. This module never evaluates an interface, instantiates a module, or acquires host authority.
Re-exports§
pub use wit::import_wit;pub use wit::project_wit;pub use wit::WitDiagnostic;pub use wit::WitDiagnosticSeverity;pub use wit::WitImportArtifact;pub use wit::WitImportOptions;pub use wit::WitProjectionArtifact;pub use wit::WitProjectionOptions;pub use wit::WitRoute;pub use wit::WIT_IR_SCHEMA;pub use wit::WIT_MANIFEST_SCHEMA;
Modules§
- wit
- A bounded, data-only bridge for the WebAssembly Interface Types format.
Structs§
- Adapter
Artifact - A deterministic adapter module and the manifest describing its composition.
- Async
Policy - Binding
Function - Binding
Parameter - Binding
Result - Bound
Package - Callback
Contract - Callback
Parameter - Direct
Wasm Function Export - Direct
Wasm Import - Direct
Wasm Inspection - Direct
Wasm Memory - Error
Contract - Handle
Contract - Host
Call Contract - Inspection
Artifact - Memory
Argument Plan - Memory
Binding Plan - Memory
Contract - Memory
Function Plan - Memory
Result Plan - Request
Policy - Wasm
Interface - Wasmtime
Memory Executor - Generic native executor for the closed
memory.v1binding plan.
Enums§
- Binding
Target - Cancellation
Policy - Direct
Wasm Import Kind - Hara
Value Type - Lifting
- Lowering
- Ownership
- Wasm
Value Type
Constants§
- ADAPTER_
MANIFEST_ SCHEMA - DIRECT_
WASM_ BINDING_ SCHEMA - DIRECT_
WASM_ BUILD_ PRODUCT_ SCHEMA - DIRECT_
WASM_ CONFORMANCE_ SCHEMA - DIRECT_
WASM_ INSPECTION_ SCHEMA - MEMORY_
BINDING_ SCHEMA - WASM_
INTERFACE_ SCHEMA
Functions§
- bind_
package - direct_
inspection_ source - direct_
interface_ skeleton - generate_
adapter - Generate the portable scalar adapter for a verified library/interface pair.
- generate_
hta_ adapter - Generate the HTA package adapter for scalar bindings.
- inspect_
direct - inspect_
module - verify_
hta_ scalar - write_
interface_ skeleton