#file-dialog #tauri-plugin #tauri-app #applications #save-file #message #native

sys tauri-plugin-dialog

Native system dialogs for opening and saving files along with message dialogs on your Tauri application

18 releases

2.0.0-beta.9 May 30, 2024
2.0.0-beta.6 Apr 23, 2024
2.0.0-beta.3 Mar 21, 2024
2.0.0-alpha.7 Dec 28, 2023
2.0.0-alpha.0 May 24, 2023

#521 in GUI

Download history 582/week @ 2024-02-23 708/week @ 2024-03-01 719/week @ 2024-03-08 1042/week @ 2024-03-15 901/week @ 2024-03-22 1135/week @ 2024-03-29 1238/week @ 2024-04-05 1341/week @ 2024-04-12 1809/week @ 2024-04-19 1746/week @ 2024-04-26 1566/week @ 2024-05-03 1394/week @ 2024-05-10 1794/week @ 2024-05-17 2103/week @ 2024-05-24 2315/week @ 2024-05-31 1203/week @ 2024-06-07

7,634 downloads per month
Used in 2 crates

Apache-2.0 OR MIT


Rust 2.5K SLoC // 0.0% comments TypeScript 673 SLoC // 0.6% comments Kotlin 454 SLoC // 0.0% comments Swift 443 SLoC // 0.0% comments JavaScript 21 SLoC // 0.2% comments Prolog 18 SLoC


Native system dialogs for opening and saving files along with message dialogs.


This plugin requires a Rust version of at least 1.75

There are three general methods of installation that we can recommend.

  1. Use crates.io and npm (easiest, and requires you to trust that our publishing pipeline worked)
  2. Pull sources directly from Github using git tags / revision hashes (most secure)
  3. Git submodule install this repo in your tauri project and then use file protocol to ingest the source (most secure, but inconvenient to use)

Install the Core plugin by adding the following to your Cargo.toml file:


tauri-plugin-dialog = "2.0.0-beta"
# alternatively with Git:
tauri-plugin-dialog = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }

You can install the JavaScript Guest bindings using your preferred JavaScript package manager:

Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use.

pnpm add @tauri-apps/plugin-dialog
# or
npm add @tauri-apps/plugin-dialog
# or
yarn add @tauri-apps/plugin-dialog

# alternatively with Git:
pnpm add https://github.com/tauri-apps/tauri-plugin-dialog#v2
# or
npm add https://github.com/tauri-apps/tauri-plugin-dialog#v2
# or
yarn add https://github.com/tauri-apps/tauri-plugin-dialog#v2


First you need to register the core plugin with Tauri:


fn main() {
        .expect("error while running tauri application");

Afterwards all the plugin's APIs are available through the JavaScript guest bindings:


PRs accepted. Please make sure to read the Contributing Guide before making a pull request.



For the complete list of sponsors please visit our website and Open Collective.


Code: (c) 2015 - Present - The Tauri Programme within The Commons Conservancy.

MIT or MIT/Apache 2.0 where applicable.


~884K SLoC