Conversation
3f24e5b to
93ee323
Compare
Added:
- feat: implement tauri `tray` feature:
enable `tauri/tray-icon` feature
- `mod tauri::`
- `Rect`
- `Size`
- `enum RunEvent::{MenuEvent, TrayIconEvent}`
- `AppHandle::{run_on_main_thread, exit, restart,
on_tray_icon_event, tray_by_id, remove_tray_by_id,
default_window_icon, invoke_key}`
- `mod tauri::tray`
- `mod webview::`
- `WebviewWindow::{run_on_main_thread, set_icon}`
Changed:
- bump `rust-version = "1.82"`
- perf(pytauri): almost all of pyo3 `pymethods` will release the `GIL`
now
Docs:
- update `example/nicegui-app` to use `tray` and `menu` features
- use `python3.10` `match` statement instead of `if-else` statement
- bump `requires-python = ">=3.10"`
Internal:
- `pytauri.ffi.ipc.JavaScriptChannelId.from_str` becomes `staticmethod`
from `classmethod`
- refactor(pyo3-utils): use `rust v1.82` feature `Omitting empty types
in pattern matching` in place of `Result<T, Infallible>::unwrap`
BREAKING CHANGE:
- perf(pytauri): the fields type of `enum RunEvent` `struct` variants
changed to `Py<T>`
For matrix jobs, we must set `python-version`, otherwise `uv` may incorrectly use other Python versions cached in GitHub Actions. Ref: <astral-sh/uv#9454>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Added:
trayfeature: enabletauri/tray-iconfeaturemod tauri::-Rect-Size-enum RunEvent::{MenuEvent, TrayIconEvent}-AppHandle::{run_on_main_thread, exit, restart, on_tray_icon_event, tray_by_id, remove_tray_by_id, default_window_icon, invoke_key}mod tauri::traymod webview::WebviewWindow::{run_on_main_thread, set_icon}Changed:
rust-version = "1.82"pymethodswill release theGILnowDocs:
example/nicegui-appto usetrayandmenufeaturespython3.10matchstatement instead ofif-elsestatementrequires-python = ">=3.10"Internal:
pytauri.ffi.ipc.JavaScriptChannelId.from_strbecomesstaticmethodfromclassmethodrust v1.82featureOmitting empty types in pattern matchingin place ofResult<T, Infallible>::unwrapBREAKING CHANGE:
enum RunEventstructvariants changed toPy<T>Checklist
CONTRIBUTING.md.CHANGELOG.mdaccordingly.