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.
1 parent a5bcab9 commit 396d55bCopy full SHA for 396d55b
packages/build-tools/crates/wit-tools/src/lib.rs
@@ -90,9 +90,13 @@ impl WitMerger {
90
imports.push(import_string);
91
}
92
93
- // TODO: Figure out how to deal with functions
94
- wit_parser::WorldItem::Function(_) => todo!(),
95
- // Do nothing for types because COomponentizeJS does not
+
+ wit_parser::WorldItem::Function(f) => {
+ if f.kind == wit_parser::FunctionKind::Freestanding {
96
+ imports.push(f.item_name().to_string());
97
+ }
98
99
+ // Do nothing for types because ComponentizeJS does not
100
// generate bindings for types
101
wit_parser::WorldItem::Type(_) => {}
102
0 commit comments