Crate golem_rust_macro

source ·

Attribute Macros§

  • 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.
  • Defines a function as an Operation that can be used in transactions

Derive Macros§

  • Derives From<> And Into<> 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: