Skip to content

feat(async_runtime): enable track_caller attribute for async_runtime#14905

Merged
lucasfernog merged 4 commits into
tauri-apps:devfrom
Tunglies:feat/async_runtime-track
Apr 29, 2026
Merged

feat(async_runtime): enable track_caller attribute for async_runtime#14905
lucasfernog merged 4 commits into
tauri-apps:devfrom
Tunglies:feat/async_runtime-track

Conversation

@Tunglies

@Tunglies Tunglies commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

Related issues: #14904

@Tunglies Tunglies requested a review from a team as a code owner February 6, 2026 03:15
@Tunglies Tunglies force-pushed the feat/async_runtime-track branch from 72be786 to 111c7bf Compare February 15, 2026 01:06
@github-actions

github-actions Bot commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Package Changes Through 7538745

There are 11 changes which include tauri with minor, @tauri-apps/api with minor, tauri-build with minor, tauri-macos-sign with patch, tauri-bundler with minor, @tauri-apps/cli with minor, tauri-cli with minor, tauri-runtime with minor, tauri-runtime-wry with minor, tauri-utils with minor, tauri-plugin with minor

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.10.1 2.11.0
tauri-utils 2.8.3 2.9.0
tauri-macos-sign 2.3.3 2.3.4
tauri-bundler 2.8.1 2.9.0
tauri-runtime 2.10.1 2.11.0
tauri-runtime-wry 2.10.1 2.11.0
tauri-codegen 2.5.5 2.5.6
tauri-macros 2.5.5 2.5.6
tauri-plugin 2.5.4 2.6.0
tauri-build 2.5.6 2.6.0
tauri 2.10.3 2.11.0
@tauri-apps/cli 2.10.1 2.11.0
tauri-cli 2.10.1 2.11.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

@Legend-Master

Copy link
Copy Markdown
Contributor

I have read about this on https://doc.rust-lang.org/reference/attributes/codegen.html#the-track_caller-attribute but I'm still not sure the best practices of this attribute, do we have some pointers for me to look at to understand this better? Or maybe someone else on the team understands it better?

@Tunglies

Tunglies commented Apr 24, 2026

Copy link
Copy Markdown
Contributor Author

Hey @Legend-Master, I thinks these is another small reference. In tokio-rs/console#120. His usage is exactly as same as tauri's.

@Tunglies

Tunglies commented Apr 24, 2026

Copy link
Copy Markdown
Contributor Author

Also in the source code of tokio

https://github.com/tokio-rs/tokio/blob/6c03e03898d71eca976ee1ad8481cf112ae722ba/tokio/src/task/builder.rs#L86-L98

Comment thread crates/tauri/src/async_runtime.rs Outdated
@Tunglies Tunglies changed the title feat(async_runtime): enable track_caller attribute for async_runtime under tracing feature feat(async_runtime): enable track_caller attribute for async_runtime Apr 29, 2026
@Legend-Master Legend-Master linked an issue Apr 29, 2026 that may be closed by this pull request

@lucasfernog lucasfernog left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice catch, thanks!

@lucasfernog lucasfernog merged commit d83d2d9 into tauri-apps:dev Apr 29, 2026
19 checks passed
@Tunglies Tunglies deleted the feat/async_runtime-track branch April 29, 2026 13:32
razein97 pushed a commit to razein97/tauri that referenced this pull request Apr 30, 2026
…auri-apps#14905)

* feat(async_runtime): enable track_caller attribute for async_runtime under tracing feature

* fix: `track_caller` enable by default for async_runtime

---------

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
razein97 pushed a commit to razein97/tauri that referenced this pull request Apr 30, 2026
…auri-apps#14905)

* feat(async_runtime): enable track_caller attribute for async_runtime under tracing feature

* fix: `track_caller` enable by default for async_runtime

---------

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
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.

[feat] async_runtime for better async-task tracing

3 participants