feat(async_runtime): enable track_caller attribute for async_runtime#14905
Conversation
…under tracing feature
72be786 to
111c7bf
Compare
Package Changes Through 7538745There 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 VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
|
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? |
|
Hey @Legend-Master, I thinks these is another small reference. In tokio-rs/console#120. His usage is exactly as same as tauri's. |
|
Also in the source code of tokio |
…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>
…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>
Related issues: #14904