Skip to content

Commit d57078a

Browse files
committed
Add output to add wit-bindgen to Spin app when bindgins are genereated
Signed-off-by: Mikkel Mork Hegnhoj <[email protected]>
1 parent 6c5e715 commit d57078a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands/bindings.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ impl GenerateBindingsCommand {
8080
}
8181

8282
fs::write(self.output.join("mod.rs"), mod_output).await?;
83+
println!("Bindings generated for Rust in {0}. You need to add the `wit-bindgen` crate to your Rust Spin app - e.g., `cargo add wit-bindgen`", self.output.to_str().expect("Failed to parse output path"));
8384
}
8485
BindingsLanguage::Ts => {
8586
todo!("generate ts")

0 commit comments

Comments
 (0)