From 4342622c77e4dd680a6e80846bcfc1632a86dd68 Mon Sep 17 00:00:00 2001 From: Drew Ridley <47063089+DrewRidley@users.noreply.github.com> Date: Sat, 1 Mar 2025 16:52:02 +0000 Subject: [PATCH] Update rust.md Made documentation a bit more clear on how cargo component works --- component-model/src/language-support/rust.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component-model/src/language-support/rust.md b/component-model/src/language-support/rust.md index 263bbaa..a5eb757 100644 --- a/component-model/src/language-support/rust.md +++ b/component-model/src/language-support/rust.md @@ -19,7 +19,7 @@ Create a Rust library that implements the `add` function in the [`example` world](https://github.com/bytecodealliance/component-docs/tree/main/component-model/examples/example-host/add.wit). First scaffold a project: ```sh -$ cargo component new add --lib && cd add +$ cargo component new adder --lib && cd adder ``` Note that `cargo component` generates the necessary bindings as a module called `bindings`.