Skip to content

fix(driver): bump locked dependencies to fix build issue on Windows - #7475

Merged
lucasfernog merged 2 commits into
tauri-apps:1.xfrom
ComunidadAylas:dev
Aug 8, 2023
Merged

fix(driver): bump locked dependencies to fix build issue on Windows#7475
lucasfernog merged 2 commits into
tauri-apps:1.xfrom
ComunidadAylas:dev

Conversation

@AlexTMjugador

@AlexTMjugador AlexTMjugador commented Jul 21, 2023

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Docs
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
  • I have added a convincing reason for adding this feature, if necessary

Other information

Currently, it is not possible to build the latest release of tauri-driver in crates.io for Windows when dependency versions are resolved as specified in the dependency lock file. This is caused due to undefined behavior on ntapi < 0.4.0, which is now rejected by recent Rust compilers [1] [2]:

tauri-driver Windows build failure

This circumstance is not an issue for bare cargo install commands, but it creates problems when passing the --locked flag, which the popular taiki-e/install-action does unconditionally, and may be desired by some security-conscious users. In addition, it degrades the Windows development experience for tauri-driver, as new contributors have to run cargo update to be able to build the project.

If these changes are merged, I'd recommend publishing a new tauri-driver patch version so that the latest crates.io release doesn't ship with an outdated Cargo.lock.

While at it, I've upgraded the MSRV to match the Tauri project and be more compatible with transitive dependencies.

@AlexTMjugador
AlexTMjugador requested a review from a team as a code owner July 21, 2023 13:59
@lucasfernog
lucasfernog changed the base branch from dev to 1.x July 21, 2023 16:44
@lucasfernog
lucasfernog changed the base branch from 1.x to dev July 21, 2023 16:44
@lucasfernog

Copy link
Copy Markdown
Member

@AlexTMjugador we should target the 1.x branch for this change. The dev branch is now tracking the v2 release.

@AlexTMjugador

Copy link
Copy Markdown
Contributor Author

Thanks for the heads-up, I'll rebase the PR!

@AlexTMjugador
AlexTMjugador changed the base branch from dev to 1.x July 21, 2023 18:35
@AlexTMjugador

Copy link
Copy Markdown
Contributor Author

While comparing base branches, I noticed that it might be a good idea to cherry-pick #7260 too, given that it also fixes some build issues.

@lucasfernog
lucasfernog merged commit 9edebbb into tauri-apps:1.x Aug 8, 2023
@lucasfernog

Copy link
Copy Markdown
Member

Thanks for catching it @AlexTMjugador !

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