@@ -115,29 +115,24 @@ revision numbers, respectively); omit the packages you won't use.
115
115
:hash: source-njs
116
116
117
117
To build Unit with `njs <https://nginx.org/en/docs/njs/ >`__ support,
118
- download the :program: `njs ` code
119
- to the same parent directory
118
+ download the :program: `njs ` code to the same parent directory
120
119
as the Unit code.
121
120
122
- If you'd like to use `Mercurial <https://www.mercurial-scm.org/downloads >`_:
121
+ **0.8.2 ** is the latest version of :program: `njs ` that Unit supports.
122
+ Make sure you are in the correct branch before configuring the binaries.
123
123
124
124
.. code-block :: console
125
125
126
- $ cd ..
127
- $ hg clone https://hg.nginx.org/njs
128
-
129
- If you prefer `Git <https://git-scm.com/downloads >`_:
130
-
131
- .. code-block :: console
132
-
133
- $ cd ..
134
- $ git clone https://github.com/nginx/njs
126
+ $ git clone https://github.com/nginx/njs.git
127
+ $ cd njs
128
+ $ git checkout -b 0.8.2 0.8.2
135
129
136
- Next, configure and build the :program: `njs ` binaries:
130
+ Next, configure and build the :program: `njs ` binaries. Make sure to use the
131
+ `--no-zlib ` and `--no-libxml2 ` options to avoid
132
+ conflicts with Unit's dependencies:
137
133
138
134
.. code-block :: console
139
135
140
- $ cd njs
141
136
$ ./configure :nxt_hint:`--no-zlib --no-libxml2 <Ensures Unit can link against the resulting library>` && make
142
137
143
138
Point to the resulting source and build directories when :ref: `configuring
@@ -166,7 +161,7 @@ revision numbers, respectively); omit the packages you won't use.
166
161
.. warning ::
167
162
The **unit-wasm ** module is deprecated.
168
163
We recommend using **wasm-wasi-component ** instead,
169
- available in Unit 1.32.0 and later, which supports
164
+ available in Unit 1.32.0 and later, which supports
170
165
WebAssembly Components using standard WASI 0.2 interfaces.
171
166
172
167
To build Unit with the `WebAssembly <https://webassembly.org >`__
0 commit comments