Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit 94c427e

Browse files
Timo StarkJTorreG
andauthored
Apply suggestions from code review
Review looks good to me! Many thanks for that! Co-authored-by: Jon Torre <78599298+Jcahilltorre@users.noreply.github.com>
1 parent e15f04f commit 94c427e

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

source/news/2024/fermyon-spin-rust-sdk.rst

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
WebAssembly Components with Fermyons Spin SDK for Rust
55
############################################################
66

7-
In our blog series `Part 1 </news/2024/wasm-component-model-part-1/>`__ and `2 </news/2024/wasm-component-model-part-2/>`__ we have covered the core mechanism of the
8-
WebAssembly Component Model and show cased how to create a Wasm Component using WASI 0.2 APIs and the **wasi/http:proxy** world.
7+
In our blog series `Part 1 </news/2024/wasm-component-model-part-1/>`__ and `2 </news/2024/wasm-component-model-part-2/>`__ , we have covered the core mechanism of the WebAssembly Component Model and showcased how to create a Wasm Component using WASI 0.2 APIs and the **wasi/http:proxy** world.
98

109
In this blog post, we will have a look on the `Fermyon's Spin <https://www.fermyon.com/spin>`__ SDK for `Rust <https://fermyon.github.io/rust-docs/spin/main/spin_sdk/index.html>`__ and create a component that can be hosted on NGINX Unit.
1110

12-
The Spin SDK for Rust comes with a great developer experience as it wraps a lot of the manual work in an easy to consume Rust API.
11+
The Spin SDK for Rust provides a great developer experience, as it wraps a lot of the manual work in an easy to consume Rust API.
1312

1413
Let's start by creating a new Rust library using **cargo new**. This will create a new library project in a sub-directory **test-spin-component** of our current work directory.
1514

@@ -19,14 +18,13 @@ Let's start by creating a new Rust library using **cargo new**. This will create
1918
$ cargo new --lib test-spin-component
2019
$ cd test-spin-component
2120
22-
Add the latest version of the "spin-sdk" and "anyhow" (Flexible Error Types and a dependency of the Spin SDK) crates to the project by issuing:
21+
Add the latest version of the "spin-sdk" and "anyhow" (Flexible Error Types and a dependency of the Spin SDK) crates to the project by running the following command:
2322

2423
.. code-block:: bash
2524
2625
$ cargo add spin-sdk anyhow
2726
28-
Before we implement the actual functionality, we must modify our **Cargo.toml** file. Open the **Cargo.toml** with an editor of your
29-
choice and append the following to the bottom of your existing **Cargo.toml** file.
27+
Before we implement the actual functionality, we must modify our **Cargo.toml** file. Open the **Cargo.toml** with an editor of your choice and append the following to the bottom of your existing **Cargo.toml** file.
3028

3129
.. code-block:: toml
3230
@@ -64,7 +62,7 @@ Compile the Rust Library into a Wasm Component using **cargo component**:
6462
6563
$ cargo component build --release
6664
67-
To run the Wasm Component on NGINX Unit, startup Unit and use this initial configuration.
65+
To run the Wasm Component on NGINX Unit, start up Unit and use this initial configuration.
6866

6967
.. note:: Make sure you point to the Wasm component by using an absolute path.
7068

@@ -84,5 +82,4 @@ To run the Wasm Component on NGINX Unit, startup Unit and use this initial confi
8482
}
8583
}
8684
87-
As the Wasm Component we have just crated uses the request and response interfaces defined by the **wasi:http/proxy**
88-
it can easily be deployed on NGINX Unit.
85+
As the Wasm Component we have just created uses the request and response interfaces defined by the **wasi:http/proxy**, it can easily be deployed on NGINX Unit.

0 commit comments

Comments
 (0)