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

Commit fd3afb4

Browse files
committed
WebAssembly is an 'internal' language module
Both the WebAssembly modules, wasm & wasm-wasi-component are internal modules. I.e they are both loaded by Unit as DSO's and run under the direct control of Unit in prototype/application processes. Reviewed-by: Timo Stark <t.stark@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
1 parent 4785ddb commit fd3afb4

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

source/howto/modules.rst

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ Working With Language Modules
66

77
Languages supported by Unit fall into these two categories:
88

9-
- :ref:`External <modules-ext>` (Go, Node.js, WebAssembly): Run outside Unit
10-
with an interface layer to the native runtime.
9+
- :ref:`External <modules-ext>` (Go, Node.js): Run outside Unit with an
10+
interface layer to the native runtime.
1111

12-
- :ref:`Embedded <modules-emb>` (Java, Perl, PHP, Python, Ruby): Execute in
13-
runtimes that Unit loads at startup.
12+
- :ref:`Embedded <modules-emb>` (Java, Perl, PHP, Python, Ruby, WebAssembly):
13+
Execute in runtimes that Unit loads at startup.
1414

1515
For any specific language and its version, Unit needs a language module.
1616

@@ -34,13 +34,6 @@ In Node.js, Unit is supported by an :program:`npm`-hosted `package
3434
otherwise, :ref:`build <howto/source-modules-nodejs>` it for your version of
3535
Node.js using Unit's sources.
3636

37-
For WebAssembly, Unit delegates bytecode execution to the
38-
`Wasmtime <https://wasmtime.dev/>`_
39-
runtime that is installed with the
40-
:ref:`unit-wasm <installation-precomp-pkgs>`
41-
module or during
42-
a :ref:`source build <source-wasm>`.
43-
4437
.. _modules-emb:
4538

4639
*************************
@@ -67,7 +60,8 @@ to find them in your system:
6760

6861
$ ls :nxt_ph:`/path/to/modules <Use runtime value if the default was overridden>`
6962

70-
java.unit.so perl.unit.so php.unit.so python.unit.so ruby.unit.so
63+
java.unit.so php.unit.so ruby.unit.so wasm_wasi_component.unit.so
64+
perl.unit.so python.unit.so wasm.unit.so
7165

7266
To clarify the module versions, check the :ref:`Unit log <troubleshooting-log>`
7367
to see which modules were loaded at startup:

0 commit comments

Comments
 (0)