Attribute Macro wit_import

Source
#[wit_import]
Expand description

Generates a generic type from a trait.

The generic type has a type parameter for the Wasm guest instance to use, and allows calling functions that the instance exports through the trait’s methods.