tauri@1.0.0-beta.2
此内容尚不支持你的语言。
-
Remove anonymous lifetimes on examples.
-
Moves
shell,dialog::FileDialogBuilderandprocess::CommandAPIs behind their allowlist feature flags. -
Adds
create_windowAPI to theAppHandlestruct. -
Adds a
handlefunction to theAppstruct, which returns aSendhandle to the app instance. -
Use
attohttpcon the HTTP API by default for bundle size optimization.reqwestis implemented behind thereqwest-clientfeature flag. -
Kill child processes spawned with
tauri::api::process::Commandontauri::Appdrop. Can be skipped withtauri::Builder#skip_cleanup_on_drop. -
Adds
clipboardAPIs (write and read text). -
Allow accessing an
AppHandleinstance on a command through dependency injection. -
Fixes child processes messages not arriving until the subprocess is terminated.
-
Adds
configandpackage_infogetters to theAppandAppHandlestructs. -
Expose mutable getters for the rest of the public
Contextgetters. -
pub fn assets_mut(&mut self) -> &mut Arc<A> -
pub fn default_window_icon_mut(&mut self) -> &mut Option<Vec<u8>> -
pub fn system_tray_icon_mut(&mut self) -> &mut Option<Icon> -
pub fn package_info_mut(&mut self) -> &mut tauri::api::PackageInfo -
754c2e76 feat(core): finish mutable getters for
Context(#1814) on 2021-05-13 -
Adds
request_user_attentionAPI to theWindowstruct. -
Adds
show,hide,is_visibleandtoggleAPIs to theMenuHandle. -
Allow
dev_pathanddist_dirto be an array of root files and directories to embed. -
Validate
tauri.conf.json > build > devPathandtauri.conf.json > build > distDirvalues. -
Set the Tauri window as parent for dialogs.
-
Fallback to
index.htmlon asset loading so router with history mode works. -
Fixes custom protocol asset loader not decoding the percent-encoded path.
-
As some frameworks automatically add “true” as the value of the attribute, we need to check if it exists instead.
-
Fixes build without the dialog Cargo features.
-
Allow disabling the webview file drop handler (required to use drag and drop on the frontend on Windows) using the
tauri.conf.json > tauri > windows > fileDropEnabledflag or theWebviewAttributes#disable_file_drop_handlermethod. -
Fixes the HTTP API binary response serialization.
-
The
httpAPIs now resolve the returned promise when the API call finishes with an error status code. -
Run the
notification.show()method on a dedicated async task to prevent a panic on Windows. -
Fixes HTTP API headers being overwritten when using the
reqwestclient. -
Remove closed window from the
window.__TAURI__.__windowsarray, used by thewindow.getAllAPI from@tauri-apps/api. -
Panic on window getters usage on the main thread when the event loop is not running and document it.
-
Adds
focusAPI to the WindowBuilder. -
Breaking change: The global shortcut API is now managed by
taoso it cannot be accessed globally, the manager is now exposed on theAppandAppHandlestructs. -
Hide
phfcrate export (not public API). -
(internal): allow
wrydependency to be optional again while keeping default args. code that wishes to expose a struct with a default arg should use thecrate::manager::default_args!macro to declare the struct, so that it can automatically feature-gateDefaultArgsbehind usingwry. -
Adds
is_decoratedgetter on Window. -
Adds
is_resizablegetter on Window. -
Adds
is_visiblegetter on Window. -
Read
tauri.conf.json > tauri > bundle > iconsand use the first.pngicon as window icon on Linux. Defaults toicon/icon.pngif a PNG icon is not configured. -
Adds
acceleratormethod to theCustomMenuItemstruct to define a keyboard shortcut for the menu item. -
Breaking change: The
menuAPI was not designed to have all the new features: submenus, item updates, disabled state… so we broke it before going to stable. -
Adds a
PathResolverstruct to simplify the usage of thetauri::api::path::{app_dir, resource_dir}APIs, accessible through theAppandAppHandlepath_resolvermethods. -
Removes
imagedependency. For now only.icoicons on Windows are supported, and we’ll implement other types on demand to optimize bundle size. -
Remove window object from the
ManagerinternalHashMapon close. This fixes the behavior of using[App|AppHandle|Window]#get_windowafter the window is closed (now correctly returnsNone). -
Improve RPC security by requiring a numeric code to invoke commands. The codes are generated by the Rust side and injected into the app’s code using a closure, so external scripts can’t access the backend. This change doesn’t protect
withGlobalTauri(window.__TAURI__) usage. -
Adds
run_iterationAPI to theAppand return the app instance on thebuildmethod of theBuilder. Therun_iterationmethod runs the window event loop step by step, allowing Tauri to be run along other applications. -
The
run_on_main_threadAPI now uses WRY’s UserEvent, so it wakes the event loop. -
Adds
set_focusAPI on Window. -
Adds
set_skip_taskbarAPI on Window. -
Adds
skip_taskbarAPI to the WindowBuilder. -
Breaking change: The
system_trayandon_system_tray_eventAPIs were not designed to have all the new features: submenus, item updates, click events, positioning… so we broke it before going to stable. -
Fix loading url containing URI fragment
-
Adds
Window#centerandWindowBuilder#centerAPIs. -
Adds window native handle getter (HWND on Windows).
© 2025 Tauri Contributors. CC-BY / MIT