Skip to content

crates update #1629

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 29, 2025
Merged

crates update #1629

merged 4 commits into from
Jul 29, 2025

Conversation

ac000
Copy link
Member

@ac000 ac000 commented Jul 25, 2025

This pull-request updates the various rust components (otel, unitctl &
wasm-wasi-component) to the latest versions of their required crates.

wasm-wasi-component is also updated to the latest version of Wasmtime
(35.0.0) which required some changes.

This is part of getting ready for a 1.35.0 release of Unit.

The following changes since commit c8b859e373089d3f347efb806c9926823de41bf6:

  Set SERVER_PORT appropriately (2025-07-25 04:49:45 +0100)

are available in the Git repository at:

  [email protected]:ac000/unit.git crates-update

for you to fetch changes up to 45da9d1da5002d08981ed32b215547b55be90038:

  wasm-wc: Update to wasmtime 35.0.0 (2025-07-25 22:46:32 +0100)

----------------------------------------------------------------
Andrew Clayton (4):
      otel: Update crates
      tools/unitctl: Update crates
      wasm-wc: Update crates
      wasm-wc: Update to wasmtime 35.0.0

 src/otel/Cargo.lock                |  584 +++++++++---------
 src/wasm-wasi-component/Cargo.lock | 1175 +++++++++++++++++++-----------------
 src/wasm-wasi-component/Cargo.toml |    8 +-
 src/wasm-wasi-component/src/lib.rs |   28 +-
 tools/unitctl/Cargo.lock           |  655 ++++++++++++--------
 5 files changed, 1330 insertions(+), 1120 deletions(-)

ac000 added 4 commits July 25, 2025 20:52
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 <[email protected]>
Run 'cargo update' to get the latest version of the required crates in
preparation for the 1.35.0 release.

This resolves a dependabot notification regarding 'crossbeam-channel'.

Link: <https://github.com/nginx/unit/security/dependabot/26>
Signed-off-by: Andrew Clayton <[email protected]>
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 <[email protected]>
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
<bytecodealliance/wasmtime#10016>.

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

  warning: unnecessary transmute
     --> /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: <https://lists.gnu.org/archive/html/qemu-rust/2025-07/msg00006.html>
Signed-off-by: Andrew Clayton <[email protected]>
@ac000 ac000 marked this pull request as ready for review July 28, 2025 20:08
@ac000 ac000 requested a review from hongzhidao July 28, 2025 20:12
Copy link
Contributor

@hongzhidao hongzhidao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ac000 ac000 merged commit 45da9d1 into nginx:master Jul 29, 2025
32 checks passed
@ac000 ac000 deleted the crates-update branch July 29, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants