[bug] tauri-cli fails to compile due to outdated dependencies

Open Beginner friendly
#16,076 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
cli

Research direction

Start with the cargo install tauri-cli --version "^2.0.0" --locked reproduction and inspect how tauri-cli resolves the rustix-0.37.28 dependency. Update the dependency resolution to a version compatible with the latest nightly compiler, then rerun the installation command and confirm compilation succeeds.

Written by the indexing model from the issue text.

Description

status: needs triage type: bug
Describe the bug

tauri-cli relies on rustix-0.37.28, which is outdated. it will fail to compile with the latest nightly compiler.

error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
  --> /home/zekirax/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-0.37.28/src/backend/linux_raw/io/errno.rs:28:25
   |
28 | #[cfg_attr(rustc_attrs, rustc_layout_scalar_valid_range_start(0xf001))]
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
  --> /home/zekirax/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-0.37.28/src/backend/linux_raw/io/errno.rs:29:25
   |
29 | #[cfg_attr(rustc_attrs, rustc_layout_scalar_valid_range_end(0xffff))]

rustc_layout_scalar_valid_range_end was removed. there is an issue for this https://github.com/rust-lang/rust/issues/135996

Reproduction

run with the latest compiler cargo install tauri-cli --version "^2.0.0" --locked

Expected behavior

No response

Full tauri info output
don't have it yet
Stack trace

Additional context

No response

Dominant language
Rust
Stars
111k
Forks
4k
Avg merge
1d 22h
Merged PRs (30d)
62

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tauri-apps/tauri

All issues in tauri-apps/tauri

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.