Skip to main content

Crate hyperlight_component_csharp

Crate hyperlight_component_csharp 

Source
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.Component namespace that generated bindings depend on.

Functions§

generate
Generate C# bindings for the world named world in source, or its last world. All generated types are placed under namespace.
generate_from_path
Generate C# bindings for a world in the .wit file or directory at path. A relative path is resolved against CARGO_MANIFEST_DIR when set, and the working directory otherwise. See generate for world and namespace.