Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat(core): add state management, closes #1655 * fix(tests): ignore doc example * use a trait to manage #[command] parameters * add docs [skip ci] * finish command before moving into respond_async * Revert "finish command before moving into respond_async" This reverts commit 4651bed. * refactor: split InvokeMessage into InvokeResolver, add InvokeResponse * feat: add managed state to the plugin interface * feat: add commands example * add change file [skip ci] * cleanup clones Co-authored-by: chip reed <chip@chip.sh>
- Loading branch information
1 parent
d92fde7
commit 8b6f3de
Showing
43 changed files
with
1,070 additions
and
222 deletions.
There are no files selected for viewing
This file contains 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,5 @@ | ||
--- | ||
"tauri": patch | ||
--- | ||
|
||
Adds `manage` API to the `Builder` struct, which manages app state. |
This file contains 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,5 @@ | ||
--- | ||
"tauri-macros": patch | ||
--- | ||
|
||
Adds support to command state, triggered when a command argument is `arg: State<'_, StateType>`. |
This file contains 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,7 @@ | ||
--- | ||
"tauri": patch | ||
--- | ||
|
||
Refactored the `Plugin` trait `initialize` and `extend_api` signatures. | ||
`initialize` now takes the `App` as first argument, and `extend_api` takes a `InvokeResolver` as last argument. | ||
This adds support to managed state on plugins. |
This file contains 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,5 @@ | ||
--- | ||
"tauri": patch | ||
--- | ||
|
||
Removes the `with_window` attribute on the `command` macro. Tauri now infers it using the `FromCommand` trait. |
This file contains 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 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 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 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.