From d9ef9346da96be37bdfb87cc46e42138aba388e0 Mon Sep 17 00:00:00 2001 From: Brendan O'Brien Date: Thu, 11 Apr 2024 13:17:07 -0400 Subject: [PATCH] fixup tutorials for cargo-component-component 0.10.1 --- _posts/2024-02-19-jco-1.0.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_posts/2024-02-19-jco-1.0.md b/_posts/2024-02-19-jco-1.0.md index c9a0216..f4849bf 100644 --- a/_posts/2024-02-19-jco-1.0.md +++ b/_posts/2024-02-19-jco-1.0.md @@ -77,6 +77,7 @@ $ cd playground-jco # Enter the newly created project $ npm init -y # Setup a Node.js environment $ touch index.js # Create a JS entrypoint $ echo node_modules >> .gitignore # Add node_modules to our .gitignore file +$ cargo add wit_bindgen # add cargo crate dependencies ``` This should leave you with a structure that roughly looks like this: @@ -102,7 +103,7 @@ which takes a regular string, and converts it to [SHOUTING CASE!!1!](https://github.com/badboy/stdshout). ```wit -package my-org:wit-playground +package my-org:wit-playground; world playground { export scream: func(input: string) -> string;