Skip to content

Commit 3ffbd45

Browse files
committed
minor fixes
1 parent 12bc6cc commit 3ffbd45

File tree

3 files changed

+28
-31
lines changed

3 files changed

+28
-31
lines changed

source/configuration.rst

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5025,31 +5025,21 @@ you have:
50255025
.. list-table::
50265026
:header-rows: 1
50275027
5028-
* - Option
5029-
- Description
5030-
5031-
* - **script** (required)
5032-
- String;
5033-
rack script pathname,
5034-
including the **.ru** extension,
5035-
for instance:
5036-
**/www/rubyapp/script.ru**.
5028+
* - Option
5029+
- Description
50375030
5038-
* - **hooks**
5039-
- String;
5040-
pathname of the **.rb** file
5041-
setting the event hooks
5042-
invoked during the app's lifecycle.
5031+
* - **script** (required)
5032+
- String; rack script pathname, including the **.ru** extension,
5033+
for instance: **/www/rubyapp/script.ru**.
50435034
5044-
* - **threads**
5045-
- Integer;
5046-
number of worker threads
5047-
per :ref:`app process <sec-processes>`.
5048-
When started,
5049-
each app process creates this number of threads
5050-
to handle requests.
5035+
* - **hooks**
5036+
- String; pathname of the **.rb** file setting the event hooks invoked
5037+
during the app's lifecycle.
50515038
5052-
The default is **1**.
5039+
* - **threads**
5040+
- Integer; number of worker threads per
5041+
:ref:`app process <sec-processes>`. When started, each app process
5042+
creates this number of threads to handle requests. The default is **1**.
50535043
50545044
Example:
50555045

source/news/2024/unit-1.32.1-released.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Unit 1.32.1 Released
66

77
NGINX Unit 1.32.1 is a maintenance release, fixing bugs in the new WebAssembly Language Module and in our NJS implementation.
88

9+
===============
10+
Resolved issues
11+
===============
12+
13+
This release fixes the following issues:
14+
915
**************************************************************
1016
Applications of type `wasm-wasi-component` can't be restarted
1117
**************************************************************
@@ -26,9 +32,9 @@ With **1.32.0** we have released the possibility to access all Unit variables fo
2632
As reported in GitHub issue `#1169 <https://github.com/nginx/unit/issues/1169>`__ the variables are cached and will hold the wrong value, which is definitely not the way this feature should work. With 1.32.1 we have fixed this issue.
2733

2834

29-
**************
35+
==============
3036
Full Changelog
31-
**************
37+
==============
3238

3339
.. code-block:: none
3440
@@ -39,7 +45,7 @@ Full Changelog
3945
4046
*) Bugfix: Wasm application process hangs after receiving restart signal
4147
from the control.
42-
48+
4349
4450
4551
For a full list of changes and bugfixes,

source/news/2024/wasm-component-model-part-2.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This tutorial targets Linux-based operating systems and MacOS. If you are on Win
1919
Rust Development Setup
2020
=============================
2121

22-
Let's start by installing the Rust ecosystem, if not already done. At the time of writing, Rust 1.76 is the latest stable version.
22+
Let's start by installing the Rust ecosystem, if not already done. At the time of writing, Rust 1.76 is the latest stable version.
2323
To install Rust, see the instructions on their `website <https://www.rust-lang.org/tools/install>`__.
2424

2525
After the installation completes, you can confirm the current version of Rust by running:
@@ -45,7 +45,7 @@ The wasm32-wasi compiler target will provide general Wasm support to your rustc
4545
Install cargo-component
4646
======================================
4747

48-
**cargo-component** will add a cargo subcommand to build Wasm Components without any intermediate steps from our Rust project.
48+
**cargo-component** will add a cargo subcommand to build Wasm Components without any intermediate steps from our Rust project.
4949
To install the latest version, run the following command:
5050

5151
.. code-block:: bash
@@ -56,7 +56,7 @@ To install the latest version, run the following command:
5656
Install wasmtime runtime and CLI for testing
5757
=================================================
5858

59-
The wasmtime-cli will be used to test and play around with the Wasm component. At the time of writing, we are using Wasmtime 18.
59+
The wasmtime-cli will be used to test and play around with the Wasm component. At the time of writing, we are using Wasmtime 18.
6060
To install the latest version of Wasmtime, run:
6161

6262
.. code-block:: bash
@@ -68,6 +68,7 @@ For more information about Wasmtime and installing it, see their `GitHub reposit
6868
Once we have all the tools in place, we can create the Rust projects.
6969

7070
.. _tutorial-rust-based-wasm-component:
71+
7172
======================================
7273
Using the **wasi** Rust library
7374
======================================
@@ -162,7 +163,7 @@ Targeting the wasi crate requires some low-level Rust work by us. Not bad at all
162163
Let's build the component. Run the following command from the **test-wasi-component** directory:
163164

164165
.. code-block:: bash
165-
166+
166167
$ cargo component build --release
167168
168169
The build shows a very small dependency footprint, so is a major benefit from the wasi crate.
@@ -204,7 +205,7 @@ Sending a request to the exposed endpoint will output something like this:
204205
NGINX Unit for production grade Wasm workloads
205206
************************************************************************
206207

207-
While the **wasmtime-cli** interface is good for testing Wasm components locally, there are more requirements for production workloads.
208+
While the **wasmtime-cli** interface is good for testing Wasm components locally, there are more requirements for production workloads.
208209

209210
With NGINX Units Wasm runtime, you will be able to run your Wasm workloads next to other host applications on a single host and make use of all the other powerful Unit features. Given Units design and as we have decoupled the listeners from the application runtime, you can make full use of the Unit Router to make routing decisions before sharing a request with your Wasm Component or add HTTPS to your stack.
210211

@@ -226,7 +227,7 @@ Create a **config.json** file:
226227
"component": "path/target/wasm32-wasi/release/test_wasi_component.wasm"
227228
}
228229
}
229-
}
230+
}
230231
231232
Apply the configuration using **unitc**:
232233

0 commit comments

Comments
 (0)