-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
feat(macros): add support for rename command macro in tauri-macros #14173 #14473
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
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
292696f
feat(macros): add support for alias command macro in tauri-macros #14173
Tunglies e0214fa
Merge branch 'dev' into feat-alias-command
Tunglies 0bdc15c
Merge branch 'dev' into feat-alias-command
Tunglies 78d0a17
feat(macro): rename alias command to improve clarity in tauri-macros
Tunglies 895cf58
feat(wrapper): refactor rename handling in WrapperAttributes for impr…
Tunglies c9bc53d
feat(wrapper): update rename policy to use TokenStream2 for improved …
Tunglies 25baceb
feat(handler): streamline command definition parsing for improved eff…
Tunglies fc41cd4
feat(wrapper): simplify macro export logic in wrapper function for cl…
Tunglies 5f6385d
fix(handler): optimize command zipping for improved readability
Tunglies 5d44307
fix: code style compectiable with rust 1.77.2
Tunglies 863c4c5
Merge branch 'dev' into feat-alias-command
Tunglies 7e2890d
fix const not in scope when command is defined in another mod
lucasfernog c9c9f56
update examples
lucasfernog 0aa0fac
update change file
lucasfernog c346c89
fmt
lucasfernog e119ad0
Merge branch 'dev' into feat-alias-command
lucasfernog a67110d
style: fix pnpm:check errors
Tunglies 6d8d05b
Merge branch 'dev' into feat-alias-command
lucasfernog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| "tauri-macros": minor:feat | ||
| "tauri": minor:feat | ||
| --- | ||
|
|
||
| Add support for the `rename` attribute in the `tauri::command` macro to allow renaming the command to something other than the function name. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How abort export same function name from different module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #14473 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)