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