8000 refactor: simplify `future` in command IPC structs by Legend-Master · Pull Request #13529 · tauri-apps/tauri · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor: simplify future in command IPC structs #13529

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 2 commits into from
Jun 4, 2025

Conversation

Legend-Master
Copy link
Contributor

Reference: #13382

This reduced the incremental compilation time from 4.36s to 3.59s on my machine quite consistently (tested by adding and removing a new line inside an async command)

I don't fully understand the differences between an async function vs impl Future in rust though, but I think they're the same in this case

@Legend-Master Legend-Master requested a review from a team as a code owner May 29, 2025 14:17
@github-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap May 29, 2025
Copy link
Contributor
github-actions bot commented May 29, 2025

Package Changes Through 3570d80

There are 8 changes which include tauri-bundler with minor, tauri-cli with minor, tauri-codegen with minor, tauri-utils with minor, @tauri-apps/cli with minor, tauri with minor, @tauri-apps/api with minor, tauri-runtime-wry with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.5.0 2.6.0
tauri-utils 2.4.0 2.5.0
tauri-bundler 2.4.0 2.5.0
tauri-runtime 2.6.0 2.6.1
tauri-runtime-wry 2.6.0 2.6.1
tauri-codegen 2.2.0 2.3.0
tauri-macros 2.2.0 2.2.1
tauri-plugin 2.2.0 2.2.1
tauri-build 2.2.0 2.2.1
tauri 2.5.1 2.6.0
@tauri-apps/cli 2.5.0 2.6.0
tauri-cli 2.5.0 2.6.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@FabianLars
Copy link
Member
FabianLars commented May 29, 2025

but I think they're the same in this case

I think so too

@FabianLars
Copy link
Member

from ~3.2 to ~2.9 on macos (battery saving mode, forgot to say that in the last pr) - only a single command in my test project tho

@FabianLars
Copy link
Member

you may want to wait for @lucasfernog to chime in cause i have no clue why there was a impl Future instead of an async fn in the first place.

@FabianLars
Copy link
Member

Or maybe not 😂

@Legend-Master
Copy link
Contributor Author

Let's just merge it and see anything breaks 🙃

I guess it was probably for supporting prior rust editions without async keyword (< 2018) but since that was quite a while back, I'm not entirely sure

@Legend-Master Legend-Master merged commit f189154 into tauri-apps:dev Jun 4, 2025
19 checks passed
@Legend-Master Legend-Master deleted the simplify-future-tags branch June 4, 2025 12:32
@github-project-automation github-project-automation bot moved this from 📬Proposal to 🔎 In audit in Roadmap Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔎 In audit
Development

Successfully merging this pull request may close these issues.

2 participants
0