feat(macros): add support for rename command macro in tauri-macros #14173#14473
Conversation
|
Didn't look much into this yet, but I think if the idea is to rename the command, not having both command names valid, we should call it |
Package Changes Through 6d8d05bThere are 12 changes which include tauri with minor, @tauri-apps/api with minor, tauri-macros 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 initially thought of using |
It should be clearer now, changed to |
|
pushed some fixes for commands defined in a separate module (the commands example is a good way to test this). Unfortunately we need to always export the macro, and preserve the condition of unique command function names :/ |
| renamed_command, | ||
| renamed_command_in_mod, |
There was a problem hiding this comment.
How abort export same function name from different module?
A::renamed_command,
B::renamed_command,There was a problem hiding this comment.
there's no way to support all use cases :/ not exporting macros breaks some other scenarios (like importing the function and then using it directly IIRC)
Related issues: #14173
Preview
IDE & Rust Analyzer
Test code: