<feed xmlns='http://www.w3.org/2005/Atom'>
<title>unit.git/src/wasm-wasi-component, branch master</title>
<subtitle>Universal Web Application Server</subtitle>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/'/>
<entry>
<title>rust, wasm-wc, otel: Bump the slab crate from 0.4.10 to 0.4.11</title>
<updated>2025-08-15T17:58:18+00:00</updated>
<author>
<name>dependabot[bot]</name>
<email>49699333+dependabot[bot]@users.noreply.github.com</email>
</author>
<published>2025-08-15T17:37:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=f682580e918cfe3e99f33cad6578204719b628e0'/>
<id>f682580e918cfe3e99f33cad6578204719b628e0</id>
<content type='text'>
Bumps &lt;https://github.com/tokio-rs/slab&gt; from 0.4.10 to 0.4.11.

Fix Slab::get_disjoint_mut out of bounds.

(This combines two dependabots into one)

Link: Release notes &lt;https://github.com/tokio-rs/slab/releases&gt;
Link: Changelog &lt;https://github.com/tokio-rs/slab/blob/master/CHANGELOG.md&gt;
Link: Commits &lt;https://github.com/tokio-rs/slab/compare/v0.4.10...v0.4.11&gt;
Signed-off-by: dependabot[bot] &lt;support@github.com&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bumps &lt;https://github.com/tokio-rs/slab&gt; from 0.4.10 to 0.4.11.

Fix Slab::get_disjoint_mut out of bounds.

(This combines two dependabots into one)

Link: Release notes &lt;https://github.com/tokio-rs/slab/releases&gt;
Link: Changelog &lt;https://github.com/tokio-rs/slab/blob/master/CHANGELOG.md&gt;
Link: Commits &lt;https://github.com/tokio-rs/slab/compare/v0.4.10...v0.4.11&gt;
Signed-off-by: dependabot[bot] &lt;support@github.com&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wasm-wc: Update to wasmtime 35.0.0</title>
<updated>2025-07-25T21:46:32+00:00</updated>
<author>
<name>Andrew Clayton</name>
<email>a.clayton@nginx.com</email>
</author>
<published>2025-07-25T21:34:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=45da9d1da5002d08981ed32b215547b55be90038'/>
<id>45da9d1da5002d08981ed32b215547b55be90038</id>
<content type='text'>
This is mainly just to be on the latest version for the next release of
Unit.

This required some changes to the language module as described here
&lt;https://github.com/bytecodealliance/wasmtime/pull/10016&gt;.

We also add unnecessary_transmutes to the list of allowed linters to
quell warnings like

  warning: unnecessary transmute
     --&gt; /home/andrew/src/unit/src/wasm-wasi-component/target/debug/build/wasm-wasi-component-9ae3c2c94201e6be/out/bindings.rs:440:13
      |
  440 | ...   ::std::mem::transmute(self._bitfield_1.get(0usize, 24u8) as u32)
      |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace this with: `u32::cast_signed(self._bitfield_1.get(0usize, 24u8) as u32)`
      |
      = note: `#[warn(unnecessary_transmutes)]` on by default

Also, because this is new in rustc 1.88, to avoid warnings on older
compilers the simplest thing is to just add unknown_lints to the list.

Link: &lt;https://lists.gnu.org/archive/html/qemu-rust/2025-07/msg00006.html&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is mainly just to be on the latest version for the next release of
Unit.

This required some changes to the language module as described here
&lt;https://github.com/bytecodealliance/wasmtime/pull/10016&gt;.

We also add unnecessary_transmutes to the list of allowed linters to
quell warnings like

  warning: unnecessary transmute
     --&gt; /home/andrew/src/unit/src/wasm-wasi-component/target/debug/build/wasm-wasi-component-9ae3c2c94201e6be/out/bindings.rs:440:13
      |
  440 | ...   ::std::mem::transmute(self._bitfield_1.get(0usize, 24u8) as u32)
      |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace this with: `u32::cast_signed(self._bitfield_1.get(0usize, 24u8) as u32)`
      |
      = note: `#[warn(unnecessary_transmutes)]` on by default

Also, because this is new in rustc 1.88, to avoid warnings on older
compilers the simplest thing is to just add unknown_lints to the list.

Link: &lt;https://lists.gnu.org/archive/html/qemu-rust/2025-07/msg00006.html&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wasm-wc: Update crates</title>
<updated>2025-07-25T20:06:20+00:00</updated>
<author>
<name>Andrew Clayton</name>
<email>a.clayton@nginx.com</email>
</author>
<published>2025-07-25T20:06:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=fc26ae4f600ee84d350376b1d91759f54f2cef90'/>
<id>fc26ae4f600ee84d350376b1d91759f54f2cef90</id>
<content type='text'>
Run 'cargo update' to get the latest version of the required crates in
preparation for the 1.35.0 release.

Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Run 'cargo update' to get the latest version of the required crates in
preparation for the 1.35.0 release.

Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rust: Update rust crates</title>
<updated>2025-04-08T13:50:28+00:00</updated>
<author>
<name>Andrew Clayton</name>
<email>a.clayton@nginx.com</email>
</author>
<published>2025-04-07T23:38:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=f2e97bf3f7aa7b481e1033a9d2e8be22e1a49e14'/>
<id>f2e97bf3f7aa7b481e1033a9d2e8be22e1a49e14</id>
<content type='text'>
Update (cargo update) the rust crates for wasm-wasi-component, otel &amp;
unitctl.

This will fix build issues with wasm-wasi-component &amp; rustc 1.86+.
It will also fix dependabot issues in otel and unitctl.

Link: &lt;https://github.com/bytecodealliance/wasmtime/issues/10184&gt;
Link: &lt;https://github.com/nginx/unit/pull/1585&gt;
Link: &lt;https://github.com/nginx/unit/pull/1589&gt;
Link: &lt;https://github.com/nginx/unit/pull/1570&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update (cargo update) the rust crates for wasm-wasi-component, otel &amp;
unitctl.

This will fix build issues with wasm-wasi-component &amp; rustc 1.86+.
It will also fix dependabot issues in otel and unitctl.

Link: &lt;https://github.com/bytecodealliance/wasmtime/issues/10184&gt;
Link: &lt;https://github.com/nginx/unit/pull/1585&gt;
Link: &lt;https://github.com/nginx/unit/pull/1589&gt;
Link: &lt;https://github.com/nginx/unit/pull/1570&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wasm-wc: Update crates</title>
<updated>2024-12-18T18:27:08+00:00</updated>
<author>
<name>Andrew Clayton</name>
<email>a.clayton@nginx.com</email>
</author>
<published>2024-12-18T04:13:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=e812f15fc16a8f3b9dac74e4cef732df129815f3'/>
<id>e812f15fc16a8f3b9dac74e4cef732df129815f3</id>
<content type='text'>
Run 'cargo update' to get the latest version of the required crates in
preparation for the 1.34.0 release.

This resolves a dependabot notification regarding 'idna'.

Link: &lt;https://github.com/nginx/unit/security/dependabot/13&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Run 'cargo update' to get the latest version of the required crates in
preparation for the 1.34.0 release.

This resolves a dependabot notification regarding 'idna'.

Link: &lt;https://github.com/nginx/unit/security/dependabot/13&gt;
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wasm-wc: Update to wasmtime 27.0.0</title>
<updated>2024-12-18T03:53:37+00:00</updated>
<author>
<name>Andrew Clayton</name>
<email>a.clayton@nginx.com</email>
</author>
<published>2024-12-12T23:03:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=f5371e958e5296b95539d0529a6d06cb34944951'/>
<id>f5371e958e5296b95539d0529a6d06cb34944951</id>
<content type='text'>
For no real reason other than to be on the latest release for the next
release of Unit...

Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For no real reason other than to be on the latest release for the next
release of Unit...

Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wasm-wc: Update to wasmtime v26.0.1</title>
<updated>2024-11-07T16:23:37+00:00</updated>
<author>
<name>Andrew Clayton</name>
<email>a.clayton@nginx.com</email>
</author>
<published>2024-11-06T22:04:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=e6519b9d97c5ad1de91901269cfefc1fc26b8e35'/>
<id>e6519b9d97c5ad1de91901269cfefc1fc26b8e35</id>
<content type='text'>
This fixes an issue we had with wasm-wasi-component failing to load
components with

  2024/11/06 21:08:50 [alert] 107196#107196 failed to create initial state

  Caused by:
      0: failed to compile component
      1: WebAssembly translation error
      2: Invalid input WebAssembly code at offset 15936: zero byte expected

Which was a symptom of
&lt;https://github.com/bytecodealliance/wasmtime/issues/9130&gt;

Closes: https://github.com/nginx/unit/issues/1477
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes an issue we had with wasm-wasi-component failing to load
components with

  2024/11/06 21:08:50 [alert] 107196#107196 failed to create initial state

  Caused by:
      0: failed to compile component
      1: WebAssembly translation error
      2: Invalid input WebAssembly code at offset 15936: zero byte expected

Which was a symptom of
&lt;https://github.com/bytecodealliance/wasmtime/issues/9130&gt;

Closes: https://github.com/nginx/unit/issues/1477
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wasm-wc: Bump the wasmtime crate from 24.0.0 to 24.0.1</title>
<updated>2024-10-09T21:47:07+00:00</updated>
<author>
<name>dependabot[bot]</name>
<email>49699333+dependabot[bot]@users.noreply.github.com</email>
</author>
<published>2024-10-09T19:14:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=cc2a1cc3651593fbc5ede99ceab8161c364998f3'/>
<id>cc2a1cc3651593fbc5ede99ceab8161c364998f3</id>
<content type='text'>
Bumps &lt;https://github.com/bytecodealliance/wasmtime&gt; from 24.0.0 to
24.0.1.

Fixes:

  a runtime crash when combining tail-calls with host imports that
  capture a stack trace or trap. GHSA-q8hx-mm92-4wvg

  a race condition could lead to WebAssembly control-flow integrity and
  type safety violations. GHSA-7qmx-3fpx-r45m

Link: Release notes &lt;https://github.com/bytecodealliance/wasmtime/releases&gt;
Link: Changelog &lt;https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md&gt;
Link: Commits &lt;https://github.com/bytecodealliance/wasmtime/compare/v24.0.0...v24.0.1&gt;
Signed-off-by: dependabot[bot] &lt;support@github.com&gt;
[ Tweaked commit message/subject - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bumps &lt;https://github.com/bytecodealliance/wasmtime&gt; from 24.0.0 to
24.0.1.

Fixes:

  a runtime crash when combining tail-calls with host imports that
  capture a stack trace or trap. GHSA-q8hx-mm92-4wvg

  a race condition could lead to WebAssembly control-flow integrity and
  type safety violations. GHSA-7qmx-3fpx-r45m

Link: Release notes &lt;https://github.com/bytecodealliance/wasmtime/releases&gt;
Link: Changelog &lt;https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md&gt;
Link: Commits &lt;https://github.com/bytecodealliance/wasmtime/compare/v24.0.0...v24.0.1&gt;
Signed-off-by: dependabot[bot] &lt;support@github.com&gt;
[ Tweaked commit message/subject - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wasm-wc: Enable environment inheritance</title>
<updated>2024-09-04T21:50:59+00:00</updated>
<author>
<name>Robbie McKinstry</name>
<email>thesnowmancometh@gmail.com</email>
</author>
<published>2024-08-28T02:00:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=56c237b347fd0ff3fa182663cbc965e05b158e39'/>
<id>56c237b347fd0ff3fa182663cbc965e05b158e39</id>
<content type='text'>
While the C based wasm language module inherits the process environment
the Rust based wasm-wasi-component language module did not.

One upshot of this is that with wasm-wasi-component you don't get access
to any environment variables specified in the Unit configuration.

wasm-wasi-component was based on wasmtime 17.0.0. This capability wasn't
added to the wasmtime-crate until version 20.0.0.

Now that wasm-wasi-component has been updated to a newer wasmtime-crate
we can enable this functionality.

Closes: https://github.com/nginx/unit/issues/1312
[ Commit message - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While the C based wasm language module inherits the process environment
the Rust based wasm-wasi-component language module did not.

One upshot of this is that with wasm-wasi-component you don't get access
to any environment variables specified in the Unit configuration.

wasm-wasi-component was based on wasmtime 17.0.0. This capability wasn't
added to the wasmtime-crate until version 20.0.0.

Now that wasm-wasi-component has been updated to a newer wasmtime-crate
we can enable this functionality.

Closes: https://github.com/nginx/unit/issues/1312
[ Commit message - Andrew ]
Signed-off-by: Andrew Clayton &lt;a.clayton@nginx.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wasm-wc: bump wasmtime to v24</title>
<updated>2024-09-04T21:50:59+00:00</updated>
<author>
<name>Ava Hahn</name>
<email>a.hahn@f5.com</email>
</author>
<published>2024-08-28T19:50:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=011071aaa1809f63abdc4287c80843c8d6e7e179'/>
<id>011071aaa1809f63abdc4287c80843c8d6e7e179</id>
<content type='text'>
Signed-off-by: Ava Hahn &lt;a.hahn@f5.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Ava Hahn &lt;a.hahn@f5.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
