File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -484,8 +484,8 @@ fn generate_async_function(signature: &SignatureStruct) -> Option<String> {
484484 if field. wit_type == "string" {
485485 target_param = "&str" ;
486486 } else {
487- // Use hyperware_process_lib::Address instead of WitAddress
488- target_param = "&Address " ;
487+ // Use a distinct alias for hyperware_process_lib::Address to avoid WIT name clashes
488+ target_param = "&ProcessAddress " ;
489489 }
490490 } else if field. name == "returning" {
491491 return_type = rust_type;
@@ -778,7 +778,7 @@ crate-type = ["cdylib", "lib"]
778778 // Add global imports
779779 lib_rs. push_str ( "pub use hyperware_process_lib::hyperapp::AppSendError;\n " ) ;
780780 lib_rs. push_str ( "pub use hyperware_process_lib::hyperapp::send;\n " ) ;
781- lib_rs. push_str ( "pub use hyperware_process_lib::{Address, Request};\n " ) ;
781+ lib_rs. push_str ( "pub use hyperware_process_lib::{Address as ProcessAddress , Request};\n " ) ;
782782 lib_rs. push_str ( "use serde_json::json;\n \n " ) ;
783783
784784 // Add interface use statements
You can’t perform that action at this time.
0 commit comments