1*804060c8SJoel Dice mod bindings { 2*804060c8SJoel Dice wit_bindgen::generate!({ 3*804060c8SJoel Dice path: "../misc/component-async-tests/wit", 4*804060c8SJoel Dice world: "borrowing-caller", 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 use bindings::{ 12*804060c8SJoel Dice exports::local::local::run_bool::Guest, 13*804060c8SJoel Dice local::local::{borrowing::foo, borrowing_types::X}, 14*804060c8SJoel Dice }; 15*804060c8SJoel Dice 16*804060c8SJoel Dice struct Component; 17*804060c8SJoel Dice 18*804060c8SJoel Dice impl Guest for Component { run(misbehave: bool)19*804060c8SJoel Dice async fn run(misbehave: bool) { 20*804060c8SJoel Dice foo(&X::new(), misbehave).await 21*804060c8SJoel Dice } 22*804060c8SJoel Dice } 23*804060c8SJoel Dice 24*804060c8SJoel Dice // Unused function; required since this file is built as a `bin`: main()25*804060c8SJoel Dicefn main() {} 26