@@ -167,17 +167,12 @@ impl Invoker for MyInvoker {
167167 }
168168}
169169
170- pub fn generate_bindings (
171- wit_path : & Path ,
172- world : Option < & str > ,
173- output_dir : & Path ,
174- with_typings : bool ,
175- ) -> Result < ( ) > {
170+ pub fn generate_bindings ( wit_path : & Path , world : Option < & str > , output_dir : & Path ) -> Result < ( ) > {
176171 let ( resolve, world) = parse_wit ( wit_path, world) ?;
177172 let summary = Summary :: try_new ( & resolve, world) ?;
178173 let world_dir = output_dir. join ( resolve. worlds [ world] . name . to_snake_case ( ) . escape ( ) ) ;
179174 fs:: create_dir_all ( & world_dir) ?;
180- summary. generate_code ( & world_dir, with_typings , true ) ?;
175+ summary. generate_code ( & world_dir, true ) ?;
181176
182177 Ok ( ( ) )
183178}
@@ -378,7 +373,7 @@ pub async fn componentize(
378373 . as_ref ( )
379374 . and_then ( |( p, c) | c. bindings . as_deref ( ) . map ( |f| ( p, f) ) )
380375 {
381- summary. generate_code ( world_dir. path ( ) , false , false ) ?;
376+ summary. generate_code ( world_dir. path ( ) , false ) ?;
382377
383378 let paths = python_path
384379 . iter ( )
@@ -405,7 +400,7 @@ pub async fn componentize(
405400 let module = resolve. worlds [ world] . name . to_snake_case ( ) ;
406401 let world_dir = world_dir. path ( ) . join ( & module) ;
407402 fs:: create_dir_all ( & world_dir) ?;
408- summary. generate_code ( & world_dir, false , false ) ?;
403+ summary. generate_code ( & world_dir, false ) ?;
409404
410405 ( vec ! [ "world" . to_owned( ) ] , module)
411406 } ;
0 commit comments