Expand description
C# bindings for the host side of a WIT world.
The generator walks the elaborated component type from
hyperlight_component_util, which the Rust bindings also use. The
generated code encodes values in the format described in
docs/component-wire-format.md and calls guest functions through the
interfaces in RUNTIME_SOURCE. It covers every WIT value type and
resources the host defines. Resources the guest defines, async
functions, futures, streams, maps and flags with more than 32 members
are rejected.
Structs§
- Error
- A WIT input the C# bindings cannot be generated for.
Constants§
- RUNTIME_
SOURCE - C# source for the
Hyperlight.Componentnamespace that generated bindings depend on.
Functions§
- generate
- Generate C# bindings for the world named
worldinsource, or its last world. All generated types are placed undernamespace. - generate_
from_ path - Generate C# bindings for a world in the
.witfile or directory atpath. A relativepathis resolved againstCARGO_MANIFEST_DIRwhen set, and the working directory otherwise. Seegenerateforworldandnamespace.