Attribute Macros§
- create_
wit_ file - Annotates a module with
#[golem_rust_macro::create_wit_file]and generates WIT file in the root of your project. Supports enums, structs, traits and alias types. - golem_
operation - Defines a function as an
Operationthat can be used in transactions
Derive Macros§
- WIT_
From_ Into - Derives
From<>AndInto<>typeclasses for wit-bindgen generated data types (e.g.WitPerson) and custom domain data types (e.g.Person). So it’s possible to write code like this: