1 mod bindings {
2     wit_bindgen::generate!({
3         path: "../misc/component-async-tests/wit",
4         world: "closed-stream-guest",
5     });
6 
7     use super::Component;
8     export!(Component);
9 }
10 
11 use {bindings::exports::local::local::closed_stream::Guest, wit_bindgen::StreamReader};
12 
13 struct Component;
14 
15 impl Guest for Component {
get() -> StreamReader<u8>16     fn get() -> StreamReader<u8> {
17         bindings::wit_stream::new().1
18     }
19 }
20 
21 // Unused function; required since this file is built as a `bin`:
main()22 fn main() {}
23