#[component]Expand description
Generates the WIT interface and storage metadata.
NOTE: Mark each type used in the public method with #[export_type] attribute macro.
To disable WIT interface generation:
- don’t use
#[component]attribute macro in theimpl MyAccountTypesection;
To use manually crafted WIT interface:
- put WIT interface file in the
witfolder; - call
miden::generate!();andbindings::export!(MyAccountType); - implement
impl Guest for MyAccountType;