We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
async_trait
bindgen!
1 parent b0b3f67 commit 46fe366Copy full SHA for 46fe366
crates/component-macro/tests/codegen/direct-import.wit
@@ -0,0 +1,3 @@
1
+default world foo {
2
+ import foo: func()
3
+}
crates/wit-bindgen/src/lib.rs
@@ -364,6 +364,9 @@ impl Wasmtime {
364
}
365
366
let world_camel = resolve.worlds[world].name.to_upper_camel_case();
367
+ if self.opts.async_ {
368
+ uwriteln!(self.src, "#[wasmtime::component::__internal::async_trait]")
369
+ }
370
uwriteln!(self.src, "pub trait {world_camel}Imports {{");
371
for sig in functions {
372
self.src.push_str(sig);
0 commit comments