pytauri-core
Added
#62 - feat: add path::PathResolver
, Manager::path
.
#61 - feat: add Emitter
, EventTarget
, EventTargetType
, ImplEmitter
for Event System .
#63 - feat: add Url
and webview::WebviewWindow::navigate
.
BREAKING
#80 - refactor: trait PyAppHandleExt
is now sealed and no longer has generic parameters.
#79 - pref: the fields of enum RunEvent
struct
variants become Py<T>
types from rust types.
Added
#83 - feat: add Context::set_assets
to allow using custom assets (e.g, loading from memory/disk).
#80 - feat: add PyAppHandleExt::get_or_init_py_app_handle
, and the methods return &Py<AppHandle>
instead of impl Deref<Target = Py<AppHandle>>
now.
#79 - 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}
#75 - feat: implement tauri menu
feature :
mod tauri::
AppHandle::{on_menu_event, menu, set_menu, remove_menu, hide_menu, show_menu}
Position
PositionType
mod tauri::menu
mod tauri::image
mod tauri::window
mod tauri::webview
WebviewWindow::{on_menu_event, menu, set_menu, remove_menu, hide_menu, show_menu, is_menu_visible, popup_menu, popup_menu_at}
Webview::window
Changed
#86 - pref: use Cow<'_, [u8]>
instead of Vec<u8>
as pymehtods
/pyfunction
and extract
parameters to improve performance.
see PyO3/pyo3#3310 and PyO3/pyo3#2888 for more details.
#79 - perf: almost all of pyo3 pymethods
will release the GIL
now.
#76 - perf: use pyo3::intern!
in Invoke::bind_to
for commands IPC
performance.
#75 - perf: all methods of WebviewWindow
will release the GIL
now.
#75 - perf: App::{run, run_iteration}
will use a singleton Py<AppHandle>
as an argument instead of fetching it from tauri::State
each loop.
Internal
#83 - refactor: add trait utils::PyResultExt
to handle unraisable PyErr
.
BREAKING
#57 - refactor: remove RunEventEnum
, use matched RunEvent
directly.
#56 - perf: Invoke::bind_to
now returns [Self::BODY_KEY]
: PyBytes
instead of PyByteArray
.
Added
#50 - feat: add ipc::Channel
, ipc::JavaScriptChannelId
, webview::Webview
, webview::WebviewWindow::as_ref::<webview>
for channels ipc .
#46 - feat: add webview::WebviewWindow
, Manager
, ImplManager
, App::handle
.
#48 - feat: accessing the WebviewWindow
in Commands
.
#49 - feat: add Event
, EventId
, Listener
, ImplListener
for Event System .
2025-01-15
2025-01-15
GitHub
Back to top