1*804060c8SJoel Dice mod bindings { 2*804060c8SJoel Dice wit_bindgen::generate!({ 3*804060c8SJoel Dice path: "../misc/component-async-tests/wit", 4*804060c8SJoel Dice world: "round-trip-direct", 5*804060c8SJoel Dice }); 6*804060c8SJoel Dice 7*804060c8SJoel Dice use super::Component; 8*804060c8SJoel Dice export!(Component); 9*804060c8SJoel Dice } 10*804060c8SJoel Dice 11*804060c8SJoel Dice struct Component; 12*804060c8SJoel Dice 13*804060c8SJoel Dice impl bindings::Guest for Component { foo(s: String) -> String14*804060c8SJoel Dice async fn foo(s: String) -> String { 15*804060c8SJoel Dice format!( 16*804060c8SJoel Dice "{} - exited guest", 17*804060c8SJoel Dice bindings::foo(format!("{s} - entered guest")).await 18*804060c8SJoel Dice ) 19*804060c8SJoel Dice } 20*804060c8SJoel Dice } 21*804060c8SJoel Dice 22*804060c8SJoel Dice // Unused function; required since this file is built as a `bin`: main()23*804060c8SJoel Dicefn main() {} 24