You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This ticket is to implement another solution if possible - to have top level attribute in a module file and having wit file generated out of it.
E.g. there's a auction_app.rs file with a top level attribute #![golem_rust::create_wit_file]. File would contain only structs, traits, enums and type aliases. Than module would be imported in main.rs with mod auction_app
The text was updated successfully, but these errors were encountered:
sviezypan
changed the title
Explore possibilities to support standalone modules for wit file generation.
Support standalone modules for wit file generation.
Feb 4, 2024
Right now in order to generate WIT file from Rust code, we annotate inner module:
This ticket is to implement another solution if possible - to have top level attribute in a module file and having wit file generated out of it.
E.g. there's a
auction_app.rs
file with a top level attribute#![golem_rust::create_wit_file]
. File would contain only structs, traits, enums and type aliases. Than module would be imported inmain.rs
withmod auction_app
The text was updated successfully, but these errors were encountered: