Forráskód Böngészése

refactor(core): remove notification API (#6745)

Lucas Fernandes Nogueira 2 éve
szülő
commit
86488a6ad8

+ 1 - 1
.github/workflows/lint-fmt-core.yml

@@ -50,7 +50,7 @@ jobs:
         clippy:
           - { args: '', key: 'empty' }
           - {
-              args: '--features compression,wry,linux-protocol-headers,isolation,custom-protocol,api-all,updater,system-tray,windows7-compat,http-multipart',
+              args: '--features compression,wry,linux-protocol-headers,isolation,custom-protocol,api-all,updater,system-tray,http-multipart',
               key: 'all'
             }
           - { args: '--features custom-protocol', key: 'custom-protocol' }

+ 1 - 1
.github/workflows/test-core.yml

@@ -76,7 +76,7 @@ jobs:
               key: api-all
             }
           - {
-              args: --features compression,wry,linux-protocol-headers,isolation,custom-protocol,api-all,updater,system-tray,windows7-compat,http-multipart,
+              args: --features compression,wry,linux-protocol-headers,isolation,custom-protocol,api-all,updater,system-tray,http-multipart,
               key: all
             }
 

+ 1 - 8
core/tauri/Cargo.toml

@@ -19,7 +19,6 @@ features = [
   "wry",
   "custom-protocol",
   "api-all",
-  "windows7-compat",
   "updater",
   "fs-extract-api",
   "system-tray",
@@ -81,9 +80,6 @@ png = { version = "0.17", optional = true }
 ico = { version = "0.2.0", optional = true }
 encoding_rs = "0.8.31"
 
-[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
-notify-rust = { version = "4.5", optional = true }
-
 [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
 gtk = { version = "0.16", features = [ "v3_24" ] }
 glib = "0.16"
@@ -96,7 +92,6 @@ objc = "0.2"
 
 [target."cfg(windows)".dependencies]
 webview2-com = "0.22"
-win7-notifications = { version = "0.3.1", optional = true }
 
   [target."cfg(windows)".dependencies.windows]
   version = "0.44"
@@ -154,7 +149,6 @@ native-tls = [ "reqwest/native-tls" ]
 native-tls-vendored = [ "reqwest/native-tls-vendored" ]
 rustls-tls = [ "reqwest/rustls-tls" ]
 process-command-api = [ "shared_child", "os_pipe" ]
-notification = [ "notify-rust" ]
 system-tray = [ "tauri-runtime/system-tray", "tauri-runtime-wry/system-tray" ]
 devtools = [ "tauri-runtime/devtools", "tauri-runtime-wry/devtools" ]
 dox = [ "tauri-runtime-wry/dox" ]
@@ -162,7 +156,6 @@ macos-private-api = [
   "tauri-runtime/macos-private-api",
   "tauri-runtime-wry/macos-private-api"
 ]
-windows7-compat = [ "win7-notifications" ]
 window-data-url = [ "data-url" ]
 api-all = [
   "clipboard-all",
@@ -211,7 +204,7 @@ fs-write-file = [ ]
 global-shortcut-all = [ ]
 http-all = [ "http-request" ]
 http-request = [ ]
-notification-all = [ "notification", "dialog-ask" ]
+notification-all = [ ]
 os-all = [ "os_info" ]
 path-all = [ ]
 process-all = [ "process-relaunch", "process-exit" ]

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
core/tauri/scripts/bundle.global.js


+ 0 - 86
core/tauri/scripts/core.js

@@ -154,90 +154,4 @@
       })
     }
   })
-
-  let permissionSettable = false
-  let permissionValue = 'default'
-
-  function isPermissionGranted() {
-    if (window.Notification.permission !== 'default') {
-      return Promise.resolve(window.Notification.permission === 'granted')
-    }
-    return window.__TAURI_INVOKE__('tauri', {
-      __tauriModule: 'Notification',
-      message: {
-        cmd: 'isNotificationPermissionGranted'
-      }
-    })
-  }
-
-  function setNotificationPermission(value) {
-    permissionSettable = true
-    window.Notification.permission = value
-    permissionSettable = false
-  }
-
-  function requestPermission() {
-    return window
-      .__TAURI_INVOKE__('tauri', {
-        __tauriModule: 'Notification',
-        message: {
-          cmd: 'requestNotificationPermission'
-        }
-      })
-      .then(function (permission) {
-        setNotificationPermission(permission)
-        return permission
-      })
-  }
-
-  function sendNotification(options) {
-    if (typeof options === 'object') {
-      Object.freeze(options)
-    }
-
-    return window.__TAURI_INVOKE__('tauri', {
-      __tauriModule: 'Notification',
-      message: {
-        cmd: 'notification',
-        options:
-          typeof options === 'string'
-            ? {
-              title: options
-            }
-            : options
-      }
-    })
-  }
-
-  window.Notification = function (title, options) {
-    var opts = options || {}
-    sendNotification(
-      Object.assign(opts, {
-        title: title
-      })
-    )
-  }
-
-  window.Notification.requestPermission = requestPermission
-
-  Object.defineProperty(window.Notification, 'permission', {
-    enumerable: true,
-    get: function () {
-      return permissionValue
-    },
-    set: function (v) {
-      if (!permissionSettable) {
-        throw new Error('Readonly property')
-      }
-      permissionValue = v
-    }
-  })
-
-  isPermissionGranted().then(function (response) {
-    if (response === null) {
-      setNotificationPermission('default')
-    } else {
-      setNotificationPermission(response ? 'granted' : 'denied')
-    }
-  })
 })()

+ 0 - 4
core/tauri/src/api/error.rs

@@ -56,10 +56,6 @@ pub enum Error {
   #[cfg(feature = "fs-extract-api")]
   #[error("Failed to extract: {0}")]
   Extract(String),
-  /// Notification error.
-  #[cfg(notification_all)]
-  #[error(transparent)]
-  Notification(#[from] notify_rust::error::Error),
   /// Url error.
   #[error(transparent)]
   Url(#[from] url::ParseError),

+ 0 - 4
core/tauri/src/api/mod.rs

@@ -13,10 +13,6 @@ pub mod process;
 pub mod shell;
 pub mod version;
 
-#[cfg(all(desktop, feature = "notification"))]
-#[cfg_attr(doc_cfg, doc(cfg(all(desktop, feature = "notification"))))]
-pub mod notification;
-
 mod error;
 
 /// The error type of Tauri API module.

+ 0 - 207
core/tauri/src/api/notification.rs

@@ -1,207 +0,0 @@
-// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
-// SPDX-License-Identifier: Apache-2.0
-// SPDX-License-Identifier: MIT
-
-//! Types and functions related to desktop notifications.
-
-#[cfg(windows)]
-use std::path::MAIN_SEPARATOR as SEP;
-
-/// The desktop notification definition.
-///
-/// Allows you to construct a Notification data and send it.
-///
-/// # Examples
-/// ```rust,no_run
-/// use tauri::api::notification::Notification;
-/// // first we build the application to access the Tauri configuration
-/// let app = tauri::Builder::default()
-///   // on an actual app, remove the string argument
-///   .build(tauri::generate_context!("test/fixture/src-tauri/tauri.conf.json"))
-///   .expect("error while building tauri application");
-///
-/// // shows a notification with the given title and body
-/// Notification::new(&app.config().tauri.bundle.identifier)
-///   .title("New message")
-///   .body("You've got a new message.")
-///   .show();
-///
-/// // run the app
-/// app.run(|_app_handle, _event| {});
-/// ```
-#[allow(dead_code)]
-#[derive(Debug, Default)]
-pub struct Notification {
-  /// The notification body.
-  body: Option<String>,
-  /// The notification title.
-  title: Option<String>,
-  /// The notification icon.
-  icon: Option<String>,
-  /// The notification identifier
-  identifier: String,
-}
-
-impl Notification {
-  /// Initializes a instance of a Notification.
-  pub fn new(identifier: impl Into<String>) -> Self {
-    Self {
-      identifier: identifier.into(),
-      ..Default::default()
-    }
-  }
-
-  /// Sets the notification body.
-  #[must_use]
-  pub fn body(mut self, body: impl Into<String>) -> Self {
-    self.body = Some(body.into());
-    self
-  }
-
-  /// Sets the notification title.
-  #[must_use]
-  pub fn title(mut self, title: impl Into<String>) -> Self {
-    self.title = Some(title.into());
-    self
-  }
-
-  /// Sets the notification icon.
-  #[must_use]
-  pub fn icon(mut self, icon: impl Into<String>) -> Self {
-    self.icon = Some(icon.into());
-    self
-  }
-
-  /// Shows the notification.
-  ///
-  /// # Examples
-  ///
-  /// ```no_run
-  /// use tauri::api::notification::Notification;
-  ///
-  /// // on an actual app, remove the string argument
-  /// let context = tauri::generate_context!("test/fixture/src-tauri/tauri.conf.json");
-  /// Notification::new(&context.config().tauri.bundle.identifier)
-  ///   .title("Tauri")
-  ///   .body("Tauri is awesome!")
-  ///   .show()
-  ///   .unwrap();
-  /// ```
-  ///
-  /// ## Platform-specific
-  ///
-  /// - **Windows**: Not supported on Windows 7. If your app targets it, enable the `windows7-compat` feature and use [`Self::notify`].
-  #[cfg_attr(
-    all(not(doc_cfg), feature = "windows7-compat"),
-    deprecated = "This function does not work on Windows 7. Use `Self::notify` instead."
-  )]
-  pub fn show(self) -> crate::api::Result<()> {
-    let mut notification = notify_rust::Notification::new();
-    if let Some(body) = self.body {
-      notification.body(&body);
-    }
-    if let Some(title) = self.title {
-      notification.summary(&title);
-    }
-    if let Some(icon) = self.icon {
-      notification.icon(&icon);
-    } else {
-      notification.auto_icon();
-    }
-    #[cfg(windows)]
-    {
-      let exe = tauri_utils::platform::current_exe()?;
-      let exe_dir = exe.parent().expect("failed to get exe directory");
-      let curr_dir = exe_dir.display().to_string();
-      // set the notification's System.AppUserModel.ID only when running the installed app
-      if !(curr_dir.ends_with(format!("{SEP}target{SEP}debug").as_str())
-        || curr_dir.ends_with(format!("{SEP}target{SEP}release").as_str()))
-      {
-        notification.app_id(&self.identifier);
-      }
-    }
-    #[cfg(target_os = "macos")]
-    {
-      let _ = notify_rust::set_application(if cfg!(feature = "custom-protocol") {
-        &self.identifier
-      } else {
-        "com.apple.Terminal"
-      });
-    }
-
-    crate::async_runtime::spawn(async move {
-      let _ = notification.show();
-    });
-
-    Ok(())
-  }
-
-  /// Shows the notification. This API is similar to [`Self::show`], but it also works on Windows 7.
-  ///
-  /// # Examples
-  ///
-  /// ```no_run
-  /// use tauri::api::notification::Notification;
-  ///
-  /// // on an actual app, remove the string argument
-  /// let context = tauri::generate_context!("test/fixture/src-tauri/tauri.conf.json");
-  /// let identifier = context.config().tauri.bundle.identifier.clone();
-  ///
-  /// tauri::Builder::default()
-  ///   .setup(move |app| {
-  ///     Notification::new(&identifier)
-  ///       .title("Tauri")
-  ///       .body("Tauri is awesome!")
-  ///       .notify(&app.handle())
-  ///       .unwrap();
-  ///     Ok(())
-  ///   })
-  ///   .run(context)
-  ///   .expect("error while running tauri application");
-  /// ```
-  #[cfg(feature = "windows7-compat")]
-  #[cfg_attr(doc_cfg, doc(cfg(feature = "windows7-compat")))]
-  #[allow(unused_variables)]
-  pub fn notify<R: crate::Runtime>(self, app: &crate::AppHandle<R>) -> crate::api::Result<()> {
-    #[cfg(windows)]
-    {
-      if crate::utils::platform::is_windows_7() {
-        self.notify_win7(app)
-      } else {
-        #[allow(deprecated)]
-        self.show()
-      }
-    }
-    #[cfg(not(windows))]
-    {
-      #[allow(deprecated)]
-      self.show()
-    }
-  }
-
-  #[cfg(all(windows, feature = "windows7-compat"))]
-  fn notify_win7<R: crate::Runtime>(self, app: &crate::AppHandle<R>) -> crate::api::Result<()> {
-    let app = app.clone();
-    let default_window_icon = app.manager.inner.default_window_icon.clone();
-    let _ = app.run_on_main_thread(move || {
-      let mut notification = win7_notifications::Notification::new();
-      if let Some(body) = self.body {
-        notification.body(&body);
-      }
-      if let Some(title) = self.title {
-        notification.summary(&title);
-      }
-      if let Some(crate::Icon::Rgba {
-        rgba,
-        width,
-        height,
-      }) = default_window_icon
-      {
-        notification.icon(rgba, width, height);
-      }
-      let _ = notification.show();
-    });
-
-    Ok(())
-  }
-}

+ 0 - 8
core/tauri/src/endpoints.rs

@@ -14,7 +14,6 @@ use std::sync::Arc;
 
 mod app;
 mod event;
-mod notification;
 #[cfg(os_any)]
 mod operating_system;
 #[cfg(process_any)]
@@ -66,7 +65,6 @@ enum Module {
   #[cfg(shell_any)]
   Shell(shell::Cmd),
   Event(event::Cmd),
-  Notification(notification::Cmd),
 }
 
 impl Module {
@@ -123,12 +121,6 @@ impl Module {
           .and_then(|r| r.json)
           .map_err(InvokeError::from_anyhow)
       }),
-      Self::Notification(cmd) => resolver.respond_async(async move {
-        cmd
-          .run(context)
-          .and_then(|r| r.json)
-          .map_err(InvokeError::from_anyhow)
-      }),
     }
   }
 }

+ 0 - 127
core/tauri/src/endpoints/notification.rs

@@ -1,127 +0,0 @@
-// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
-// SPDX-License-Identifier: Apache-2.0
-// SPDX-License-Identifier: MIT
-
-#![allow(unused_imports)]
-
-use super::InvokeContext;
-use crate::Runtime;
-use serde::Deserialize;
-use tauri_macros::{command_enum, module_command_handler, CommandModule};
-
-#[cfg(notification_all)]
-use crate::{api::notification::Notification, Env, Manager};
-
-// `Granted` response from `request_permission`. Matches the Web API return value.
-const PERMISSION_GRANTED: &str = "granted";
-// `Denied` response from `request_permission`. Matches the Web API return value.
-const PERMISSION_DENIED: &str = "denied";
-
-/// The options for the notification API.
-#[derive(Debug, Clone, Deserialize)]
-pub struct NotificationOptions {
-  /// The notification title.
-  pub title: String,
-  /// The notification body.
-  pub body: Option<String>,
-  /// The notification icon.
-  pub icon: Option<String>,
-}
-
-/// The API descriptor.
-#[command_enum]
-#[derive(Deserialize, CommandModule)]
-#[serde(tag = "cmd", rename_all = "camelCase")]
-pub enum Cmd {
-  /// The show notification API.
-  #[cmd(notification_all, "notification > all")]
-  Notification { options: NotificationOptions },
-  /// The request notification permission API.
-  RequestNotificationPermission,
-  /// The notification permission check API.
-  IsNotificationPermissionGranted,
-}
-
-impl Cmd {
-  #[module_command_handler(notification_all)]
-  fn notification<R: Runtime>(
-    context: InvokeContext<R>,
-    options: NotificationOptions,
-  ) -> super::Result<()> {
-    let mut notification =
-      Notification::new(context.config.tauri.bundle.identifier.clone()).title(options.title);
-    if let Some(body) = options.body {
-      notification = notification.body(body);
-    }
-    if let Some(icon) = options.icon {
-      notification = notification.icon(icon);
-    }
-    #[cfg(feature = "windows7-compat")]
-    {
-      notification.notify(&context.window.app_handle)?;
-    }
-    #[cfg(not(feature = "windows7-compat"))]
-    notification.show()?;
-    Ok(())
-  }
-
-  fn request_notification_permission<R: Runtime>(
-    _context: InvokeContext<R>,
-  ) -> super::Result<&'static str> {
-    Ok(if cfg!(notification_all) {
-      PERMISSION_GRANTED
-    } else {
-      PERMISSION_DENIED
-    })
-  }
-
-  fn is_notification_permission_granted<R: Runtime>(
-    _context: InvokeContext<R>,
-  ) -> super::Result<bool> {
-    Ok(cfg!(notification_all))
-  }
-}
-
-#[cfg(test)]
-mod tests {
-  use super::NotificationOptions;
-
-  use quickcheck::{Arbitrary, Gen};
-
-  impl Arbitrary for NotificationOptions {
-    fn arbitrary(g: &mut Gen) -> Self {
-      Self {
-        title: String::arbitrary(g),
-        body: Option::arbitrary(g),
-        icon: Option::arbitrary(g),
-      }
-    }
-  }
-
-  #[cfg(not(notification_all))]
-  #[test]
-  fn request_notification_permission() {
-    assert_eq!(
-      super::Cmd::request_notification_permission(crate::test::mock_invoke_context()).unwrap(),
-      if cfg!(notification_all) {
-        super::PERMISSION_GRANTED
-      } else {
-        super::PERMISSION_DENIED
-      }
-    )
-  }
-
-  #[cfg(not(notification_all))]
-  #[test]
-  fn is_notification_permission_granted() {
-    let expected = cfg!(notification_all);
-    assert_eq!(
-      super::Cmd::is_notification_permission_granted(crate::test::mock_invoke_context()).unwrap(),
-      expected,
-    );
-  }
-
-  #[tauri_macros::module_command_test(notification_all, "notification > all")]
-  #[quickcheck_macros::quickcheck]
-  fn notification(_options: NotificationOptions) {}
-}

+ 0 - 3
core/tauri/src/error.rs

@@ -92,9 +92,6 @@ pub enum Error {
   /// Task join error.
   #[error(transparent)]
   JoinError(#[from] tokio::task::JoinError),
-  /// The user did not allow sending notifications.
-  #[error("sending notification was not allowed by the user")]
-  NotificationNotAllowed,
   /// Sidecar not allowed by the configuration.
   #[error("sidecar not configured under `tauri.conf.json > tauri > bundle > externalBin`: {0}")]
   SidecarNotAllowed(PathBuf),

+ 0 - 2
core/tauri/src/lib.rs

@@ -27,11 +27,9 @@
 //! - **process-command-api**: Enables the [`api::process::Command`] APIs.
 //! - **process-relaunch-dangerous-allow-symlink-macos**: Allows the [`api::process::current_binary`] function to allow symlinks on macOS (this is dangerous, see the Security section in the documentation website).
 //! - **dialog**: Enables the [`api::dialog`] module.
-//! - **notification**: Enables the [`api::notification`] module.
 //! - **fs-extract-api**: Enabled the `tauri::api::file::Extract` API.
 //! - **system-tray**: Enables application system tray API. Enabled by default if the `systemTray` config is defined on the `tauri.conf.json` file.
 //! - **macos-private-api**: Enables features only available in **macOS**'s private APIs, currently the `transparent` window functionality and the `fullScreenEnabled` preference setting to `true`. Enabled by default if the `tauri > macosPrivateApi` config flag is set to `true` on the `tauri.conf.json` file.
-//! - **windows7-compat**: Enables compatibility with Windows 7 for the notification API.
 //! - **window-data-url**: Enables usage of data URLs on the webview.
 //! - **compression** *(enabled by default): Enables asset compression. You should only disable this if you want faster compile times in release builds - it produces larger binaries.
 //! - **config-json5**: Adds support to JSON5 format for `tauri.conf.json`.

+ 0 - 9
core/tauri/src/updater/mod.rs

@@ -70,15 +70,6 @@ pub type Result<T> = std::result::Result<T, Error>;
 
 use crate::{runtime::EventLoopProxy, AppHandle, EventLoopMessage, Manager, Runtime, UpdaterEvent};
 
-#[cfg(mobile)]
-fn ask<R: Runtime>(
-  _parent_window: Option<&crate::Window<R>>,
-  _title: impl AsRef<str>,
-  _message: impl AsRef<str>,
-) -> bool {
-  true
-}
-
 /// Check for new updates
 pub const EVENT_CHECK_UPDATE: &str = "tauri://update";
 /// New update available

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
examples/api/dist/assets/index.css


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
examples/api/dist/assets/index.js


+ 8 - 551
examples/api/src-tauri/Cargo.lock

@@ -162,110 +162,6 @@ version = "1.1.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16"
 
-[[package]]
-name = "async-broadcast"
-version = "0.5.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7c48ccdbf6ca6b121e0f586cbc0e73ae440e56c67c30fa0873b4e110d9c26d2b"
-dependencies = [
- "event-listener",
- "futures-core",
-]
-
-[[package]]
-name = "async-channel"
-version = "1.8.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf46fee83e5ccffc220104713af3292ff9bc7c64c7de289f66dae8e38d826833"
-dependencies = [
- "concurrent-queue",
- "event-listener",
- "futures-core",
-]
-
-[[package]]
-name = "async-executor"
-version = "1.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "17adb73da160dfb475c183343c8cccd80721ea5a605d3eb57125f0a7b7a92d0b"
-dependencies = [
- "async-lock",
- "async-task",
- "concurrent-queue",
- "fastrand",
- "futures-lite",
- "slab",
-]
-
-[[package]]
-name = "async-fs"
-version = "1.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "279cf904654eeebfa37ac9bb1598880884924aab82e290aa65c9e77a0e142e06"
-dependencies = [
- "async-lock",
- "autocfg",
- "blocking",
- "futures-lite",
-]
-
-[[package]]
-name = "async-io"
-version = "1.13.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af"
-dependencies = [
- "async-lock",
- "autocfg",
- "cfg-if",
- "concurrent-queue",
- "futures-lite",
- "log",
- "parking",
- "polling",
- "rustix",
- "slab",
- "socket2",
- "waker-fn",
-]
-
-[[package]]
-name = "async-lock"
-version = "2.7.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fa24f727524730b077666307f2734b4a1a1c57acb79193127dcc8914d5242dd7"
-dependencies = [
- "event-listener",
-]
-
-[[package]]
-name = "async-recursion"
-version = "1.0.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b015a331cc64ebd1774ba119538573603427eaace0a1950c423ab971f903796"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "async-task"
-version = "4.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ecc7ab41815b3c653ccd2978ec3255c81349336702dfdf62ee6f7069b12a3aae"
-
-[[package]]
-name = "async-trait"
-version = "0.1.66"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b84f9ebcc6c1f5b8cb160f6990096a5c127f423fcb6e1ccc46c370cbdfb75dfc"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
 [[package]]
 name = "atk"
 version = "0.16.0"
@@ -290,12 +186,6 @@ dependencies = [
  "system-deps",
 ]
 
-[[package]]
-name = "atomic-waker"
-version = "1.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "debc29dde2e69f9e47506b525f639ed42300fc014a3e007832592448fa8e4599"
-
 [[package]]
 name = "autocfg"
 version = "1.1.0"
@@ -335,20 +225,6 @@ dependencies = [
  "generic-array",
 ]
 
-[[package]]
-name = "blocking"
-version = "1.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3c67b173a56acffd6d2326fb7ab938ba0b00a71480e14902b2591c87bc5741e8"
-dependencies = [
- "async-channel",
- "async-lock",
- "async-task",
- "atomic-waker",
- "fastrand",
- "futures-lite",
-]
-
 [[package]]
 name = "brotli"
 version = "3.3.4"
@@ -587,15 +463,6 @@ dependencies = [
  "memchr",
 ]
 
-[[package]]
-name = "concurrent-queue"
-version = "2.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c278839b831783b70278b14df4d45e1beb1aad306c07bb796637de9a0e323e8e"
-dependencies = [
- "crossbeam-utils",
-]
-
 [[package]]
 name = "convert_case"
 version = "0.4.0"
@@ -772,17 +639,6 @@ dependencies = [
  "syn",
 ]
 
-[[package]]
-name = "derivative"
-version = "2.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
 [[package]]
 name = "derive_more"
 version = "0.99.17"
@@ -806,15 +662,6 @@ dependencies = [
  "crypto-common",
 ]
 
-[[package]]
-name = "dirs"
-version = "4.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ca3aa72a6f96ea37bbc5aa912f6788242832f75369bdfdadcb0e38423f100059"
-dependencies = [
- "dirs-sys",
-]
-
 [[package]]
 name = "dirs-next"
 version = "2.0.0"
@@ -825,17 +672,6 @@ dependencies = [
  "dirs-sys-next",
 ]
 
-[[package]]
-name = "dirs-sys"
-version = "0.3.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6"
-dependencies = [
- "libc",
- "redox_users",
- "winapi",
-]
-
 [[package]]
 name = "dirs-sys-next"
 version = "0.1.2"
@@ -889,27 +725,6 @@ dependencies = [
  "cfg-if",
 ]
 
-[[package]]
-name = "enumflags2"
-version = "0.7.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e75d4cd21b95383444831539909fbb14b9dc3fdceb2a6f5d36577329a1f55ccb"
-dependencies = [
- "enumflags2_derive",
- "serde",
-]
-
-[[package]]
-name = "enumflags2_derive"
-version = "0.7.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f58dc3c5e468259f19f2d46304a6b28f1c3d034442e14b322d2b850e36f6d5ae"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
 [[package]]
 name = "env_logger"
 version = "0.10.0"
@@ -941,12 +756,6 @@ dependencies = [
  "libc",
 ]
 
-[[package]]
-name = "event-listener"
-version = "2.5.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0"
-
 [[package]]
 name = "fastrand"
 version = "1.8.0"
@@ -971,7 +780,7 @@ version = "0.3.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "1e1c54951450cbd39f3dbcf1005ac413b49487dabf18a720ad2383eccfeffb92"
 dependencies = [
- "memoffset 0.6.5",
+ "memoffset",
  "rustc_version 0.3.3",
 ]
 
@@ -1069,21 +878,6 @@ version = "0.3.26"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "bfb8371b6fb2aeb2d280374607aeabfc99d95c72edfe51692e42d3d7f0d08531"
 
-[[package]]
-name = "futures-lite"
-version = "1.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7694489acd39452c77daa48516b894c153f192c3578d5a839b62c58099fcbf48"
-dependencies = [
- "fastrand",
- "futures-core",
- "futures-io",
- "memchr",
- "parking",
- "pin-project-lite",
- "waker-fn",
-]
-
 [[package]]
 name = "futures-macro"
 version = "0.3.26"
@@ -1336,7 +1130,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "e084807350b01348b6d9dbabb724d1a0bb987f47a2c85de200e98e12e30733bf"
 dependencies = [
  "anyhow",
- "heck 0.4.1",
+ "heck",
  "proc-macro-crate",
  "proc-macro-error",
  "proc-macro2",
@@ -1464,15 +1258,6 @@ version = "0.12.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
 
-[[package]]
-name = "heck"
-version = "0.3.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c"
-dependencies = [
- "unicode-segmentation",
-]
-
 [[package]]
 name = "heck"
 version = "0.4.1"
@@ -1494,12 +1279,6 @@ version = "0.3.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286"
 
-[[package]]
-name = "hex"
-version = "0.4.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
-
 [[package]]
 name = "html5ever"
 version = "0.25.2"
@@ -1909,19 +1688,6 @@ version = "0.1.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
 
-[[package]]
-name = "mac-notification-sys"
-version = "0.5.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3e72d50edb17756489e79d52eb146927bec8eba9dd48faadf9ef08bca3791ad5"
-dependencies = [
- "cc",
- "dirs-next",
- "objc-foundation",
- "objc_id",
- "time",
-]
-
 [[package]]
 name = "malloc_buf"
 version = "0.0.6"
@@ -1975,15 +1741,6 @@ dependencies = [
  "autocfg",
 ]
 
-[[package]]
-name = "memoffset"
-version = "0.7.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4"
-dependencies = [
- "autocfg",
-]
-
 [[package]]
 name = "mime"
 version = "0.3.16"
@@ -2061,20 +1818,6 @@ version = "1.0.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54"
 
-[[package]]
-name = "nix"
-version = "0.26.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bfdda3d196821d6af13126e40375cdf7da646a96114af134d5f417a9a1dc8e1a"
-dependencies = [
- "bitflags",
- "cfg-if",
- "libc",
- "memoffset 0.7.1",
- "pin-utils",
- "static_assertions",
-]
-
 [[package]]
 name = "nodrop"
 version = "0.1.14"
@@ -2090,18 +1833,6 @@ dependencies = [
  "memchr",
 ]
 
-[[package]]
-name = "notify-rust"
-version = "4.7.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3ce656bb6d22a93ae276a23de52d1aec5ba4db3ece3c0eb79dfd5add7384db6a"
-dependencies = [
- "mac-notification-sys",
- "serde",
- "tauri-winrt-notification",
- "zbus",
-]
-
 [[package]]
 name = "nu-ansi-term"
 version = "0.46.0"
@@ -2183,17 +1914,6 @@ dependencies = [
  "objc_exception",
 ]
 
-[[package]]
-name = "objc-foundation"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9"
-dependencies = [
- "block",
- "objc",
- "objc_id",
-]
-
 [[package]]
 name = "objc_exception"
 version = "0.1.2"
@@ -2234,16 +1954,6 @@ dependencies = [
  "windows-sys 0.42.0",
 ]
 
-[[package]]
-name = "ordered-stream"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"
-dependencies = [
- "futures-core",
- "pin-project-lite",
-]
-
 [[package]]
 name = "os_info"
 version = "3.6.0"
@@ -2297,12 +2007,6 @@ dependencies = [
  "system-deps",
 ]
 
-[[package]]
-name = "parking"
-version = "2.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72"
-
 [[package]]
 name = "parking_lot"
 version = "0.12.1"
@@ -2473,7 +2177,7 @@ dependencies = [
  "base64 0.13.1",
  "indexmap",
  "line-wrap",
- "quick-xml 0.26.0",
+ "quick-xml",
  "serde",
  "time",
 ]
@@ -2490,22 +2194,6 @@ dependencies = [
  "miniz_oxide",
 ]
 
-[[package]]
-name = "polling"
-version = "2.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e1f879b2998099c2d69ab9605d145d5b661195627eccc680002c4918a7fb6fa"
-dependencies = [
- "autocfg",
- "bitflags",
- "cfg-if",
- "concurrent-queue",
- "libc",
- "log",
- "pin-project-lite",
- "windows-sys 0.45.0",
-]
-
 [[package]]
 name = "polyval"
 version = "0.6.0"
@@ -2579,15 +2267,6 @@ dependencies = [
  "unicode-ident",
 ]
 
-[[package]]
-name = "quick-xml"
-version = "0.23.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11bafc859c6815fbaffbbbf4229ecb767ac913fecb27f9ad4343662e9ef099ea"
-dependencies = [
- "memchr",
-]
-
 [[package]]
 name = "quick-xml"
 version = "0.26.0"
@@ -3011,17 +2690,6 @@ dependencies = [
  "stable_deref_trait",
 ]
 
-[[package]]
-name = "sha1"
-version = "0.10.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3"
-dependencies = [
- "cfg-if",
- "cpufeatures",
- "digest",
-]
-
 [[package]]
 name = "sha2"
 version = "0.10.6"
@@ -3126,12 +2794,6 @@ dependencies = [
  "loom",
 ]
 
-[[package]]
-name = "static_assertions"
-version = "1.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
-
 [[package]]
 name = "string_cache"
 version = "0.8.4"
@@ -3164,27 +2826,6 @@ version = "0.10.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
 
-[[package]]
-name = "strum"
-version = "0.22.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f7ac893c7d471c8a21f31cfe213ec4f6d9afeed25537c772e08ef3f005f8729e"
-dependencies = [
- "strum_macros",
-]
-
-[[package]]
-name = "strum_macros"
-version = "0.22.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "339f799d8b549e3744c7ac7feb216383e4005d94bdb22561b3ab8f3b808ae9fb"
-dependencies = [
- "heck 0.3.3",
- "proc-macro2",
- "quote",
- "syn",
-]
-
 [[package]]
 name = "subtle"
 version = "2.4.1"
@@ -3220,7 +2861,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "2955b1fe31e1fa2fbd1976b71cc69a606d7d4da16f6de3333d0c92d51419aeff"
 dependencies = [
  "cfg-expr",
- "heck 0.4.1",
+ "heck",
  "pkg-config",
  "toml",
  "version-compare",
@@ -3313,7 +2954,7 @@ dependencies = [
  "glib",
  "glob",
  "gtk",
- "heck 0.4.1",
+ "heck",
  "http",
  "ico 0.2.0",
  "ignore",
@@ -3322,7 +2963,6 @@ dependencies = [
  "libc",
  "log",
  "minisign-verify",
- "notify-rust",
  "objc",
  "once_cell",
  "open",
@@ -3356,7 +2996,6 @@ dependencies = [
  "uuid",
  "webkit2gtk",
  "webview2-com",
- "win7-notifications",
  "windows 0.44.0",
  "zip",
 ]
@@ -3368,7 +3007,7 @@ dependencies = [
  "anyhow",
  "cargo_toml",
  "filetime",
- "heck 0.4.1",
+ "heck",
  "json-patch",
  "quote",
  "semver 1.0.16",
@@ -3410,7 +3049,7 @@ dependencies = [
 name = "tauri-macros"
 version = "2.0.0-alpha.4"
 dependencies = [
- "heck 0.4.1",
+ "heck",
  "proc-macro2",
  "quote",
  "syn",
@@ -3510,7 +3149,7 @@ dependencies = [
  "ctor",
  "getrandom 0.2.8",
  "glob",
- "heck 0.4.1",
+ "heck",
  "html5ever",
  "infer 0.12.0",
  "json-patch",
@@ -3540,17 +3179,6 @@ dependencies = [
  "version_check",
 ]
 
-[[package]]
-name = "tauri-winrt-notification"
-version = "0.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c58de036c4d2e20717024de2a3c4bf56c301f07b21bc8ef9b57189fce06f1f3b"
-dependencies = [
- "quick-xml 0.23.1",
- "strum",
- "windows 0.39.0",
-]
-
 [[package]]
 name = "tempfile"
 version = "3.3.0"
@@ -3818,16 +3446,6 @@ version = "0.1.5"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81"
 
-[[package]]
-name = "uds_windows"
-version = "1.0.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ce65604324d3cce9b966701489fbd0cf318cb1f7bd9dd07ac9a4ee6fb791930d"
-dependencies = [
- "tempfile",
- "winapi",
-]
-
 [[package]]
 name = "unicase"
 version = "2.6.0"
@@ -3941,12 +3559,6 @@ version = "0.9.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
 
-[[package]]
-name = "waker-fn"
-version = "1.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca"
-
 [[package]]
 name = "walkdir"
 version = "2.3.2"
@@ -4151,16 +3763,6 @@ dependencies = [
  "windows-metadata",
 ]
 
-[[package]]
-name = "win7-notifications"
-version = "0.3.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "210952d7163b9ed83a6fd9754ab2a101d14480f8491b5f1d6292771d88dbee70"
-dependencies = [
- "once_cell",
- "windows-sys 0.36.1",
-]
-
 [[package]]
 name = "winapi"
 version = "0.3.9"
@@ -4266,19 +3868,6 @@ version = "0.44.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "ee78911e3f4ce32c1ad9d3c7b0bd95389662ad8d8f1a3155688fed70bd96e2b6"
 
-[[package]]
-name = "windows-sys"
-version = "0.36.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2"
-dependencies = [
- "windows_aarch64_msvc 0.36.1",
- "windows_i686_gnu 0.36.1",
- "windows_i686_msvc 0.36.1",
- "windows_x86_64_gnu 0.36.1",
- "windows_x86_64_msvc 0.36.1",
-]
-
 [[package]]
 name = "windows-sys"
 version = "0.42.0"
@@ -4360,12 +3949,6 @@ version = "0.48.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc"
 
-[[package]]
-name = "windows_aarch64_msvc"
-version = "0.36.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47"
-
 [[package]]
 name = "windows_aarch64_msvc"
 version = "0.39.0"
@@ -4384,12 +3967,6 @@ version = "0.48.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3"
 
-[[package]]
-name = "windows_i686_gnu"
-version = "0.36.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6"
-
 [[package]]
 name = "windows_i686_gnu"
 version = "0.39.0"
@@ -4408,12 +3985,6 @@ version = "0.48.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241"
 
-[[package]]
-name = "windows_i686_msvc"
-version = "0.36.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024"
-
 [[package]]
 name = "windows_i686_msvc"
 version = "0.39.0"
@@ -4432,12 +4003,6 @@ version = "0.48.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00"
 
-[[package]]
-name = "windows_x86_64_gnu"
-version = "0.36.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1"
-
 [[package]]
 name = "windows_x86_64_gnu"
 version = "0.39.0"
@@ -4468,12 +4033,6 @@ version = "0.48.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953"
 
-[[package]]
-name = "windows_x86_64_msvc"
-version = "0.36.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680"
-
 [[package]]
 name = "windows_x86_64_msvc"
 version = "0.39.0"
@@ -4570,70 +4129,6 @@ dependencies = [
  "libc",
 ]
 
-[[package]]
-name = "zbus"
-version = "3.11.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3dc29e76f558b2cb94190e8605ecfe77dd40f5df8c072951714b4b71a97f5848"
-dependencies = [
- "async-broadcast",
- "async-executor",
- "async-fs",
- "async-io",
- "async-lock",
- "async-recursion",
- "async-task",
- "async-trait",
- "byteorder",
- "derivative",
- "dirs",
- "enumflags2",
- "event-listener",
- "futures-core",
- "futures-sink",
- "futures-util",
- "hex",
- "nix",
- "once_cell",
- "ordered-stream",
- "rand 0.8.5",
- "serde",
- "serde_repr",
- "sha1",
- "static_assertions",
- "tracing",
- "uds_windows",
- "winapi",
- "zbus_macros",
- "zbus_names",
- "zvariant",
-]
-
-[[package]]
-name = "zbus_macros"
-version = "3.11.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "62a80fd82c011cd08459eaaf1fd83d3090c1b61e6d5284360074a7475af3a85d"
-dependencies = [
- "proc-macro-crate",
- "proc-macro2",
- "quote",
- "regex",
- "syn",
- "zvariant_utils",
-]
-
-[[package]]
-name = "zbus_names"
-version = "2.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f34f314916bd89bdb9934154627fab152f4f28acdda03e7c4c68181b214fe7e3"
-dependencies = [
- "serde",
- "static_assertions",
- "zvariant",
-]
-
 [[package]]
 name = "zip"
 version = "0.6.4"
@@ -4644,41 +4139,3 @@ dependencies = [
  "crc32fast",
  "crossbeam-utils",
 ]
-
-[[package]]
-name = "zvariant"
-version = "3.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "46fe4914a985446d6fd287019b5fceccce38303d71407d9e6e711d44954a05d8"
-dependencies = [
- "byteorder",
- "enumflags2",
- "libc",
- "serde",
- "static_assertions",
- "zvariant_derive",
-]
-
-[[package]]
-name = "zvariant_derive"
-version = "3.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34c20260af4b28b3275d6676c7e2a6be0d4332e8e0aba4616d34007fd84e462a"
-dependencies = [
- "proc-macro-crate",
- "proc-macro2",
- "quote",
- "syn",
- "zvariant_utils",
-]
-
-[[package]]
-name = "zvariant_utils"
-version = "1.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "53b22993dbc4d128a17a3b6c92f1c63872dd67198537ee728d8b5d7c40640a8b"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]

+ 0 - 1
examples/api/src-tauri/Cargo.toml

@@ -40,7 +40,6 @@ features = [
   "icon-png",
   "isolation",
   "macos-private-api",
-  "windows7-compat",
   "system-tray",
   "updater"
 ]

+ 0 - 6
examples/api/src/App.svelte

@@ -7,7 +7,6 @@
   import Welcome from './views/Welcome.svelte'
   import Cli from './views/Cli.svelte'
   import Communication from './views/Communication.svelte'
-  import Notifications from './views/Notifications.svelte'
   import Window from './views/Window.svelte'
   import Shell from './views/Shell.svelte'
   import Updater from './views/Updater.svelte'
@@ -40,11 +39,6 @@
       component: Cli,
       icon: 'i-codicon-terminal'
     },
-    !isMobile && {
-      label: 'Notifications',
-      component: Notifications,
-      icon: 'i-codicon-bell-dot'
-    },
     !isMobile && {
       label: 'App',
       component: App,

+ 0 - 34
examples/api/src/views/Notifications.svelte

@@ -1,34 +0,0 @@
-<script>
-  export let onMessage
-
-  // send the notification directly
-  // the backend is responsible for checking the permission
-  function _sendNotification() {
-    new Notification('Notification title', {
-      body: 'This is the notification body'
-    })
-  }
-
-  // alternatively, check the permission ourselves
-  function sendNotification() {
-    if (Notification.permission === 'default') {
-      Notification.requestPermission()
-        .then(function (response) {
-          if (response === 'granted') {
-            _sendNotification()
-          } else {
-            onMessage('Permission is ' + response)
-          }
-        })
-        .catch(onMessage)
-    } else if (Notification.permission === 'granted') {
-      _sendNotification()
-    } else {
-      onMessage('Permission is denied')
-    }
-  }
-</script>
-
-<button class="btn" id="notification" on:click={_sendNotification}>
-  Send test notification
-</button>

+ 0 - 12
examples/api/src/views/Window.svelte

@@ -7,7 +7,6 @@
     PhysicalSize,
     PhysicalPosition
   } from '@tauri-apps/api/window'
-  import { open as openDialog } from '@tauri-apps/api/dialog'
   import { open } from '@tauri-apps/api/shell'
 
   let selectedWindow = appWindow.label
@@ -109,16 +108,6 @@
     setTimeout(windowMap[selectedWindow].unminimize, 2000)
   }
 
-  function getIcon() {
-    openDialog({
-      multiple: false
-    }).then((path) => {
-      if (typeof path === 'string') {
-        windowMap[selectedWindow].setIcon(path)
-      }
-    })
-  }
-
   function createWindow() {
     if (!newWindowLabel) return
 
@@ -262,7 +251,6 @@
       >
         Hide
       </button>
-      <button class="btn" on:click={getIcon}> Change icon </button>
       <button
         class="btn"
         on:click={requestUserAttention_}

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
tooling/api/docs/js-api.json


+ 1 - 14
tooling/api/src/index.ts

@@ -15,7 +15,6 @@
 
 import * as app from './app'
 import * as event from './event'
-import * as notification from './notification'
 import * as path from './path'
 import * as process from './process'
 import * as shell from './shell'
@@ -27,16 +26,4 @@ import * as os from './os'
 /** @ignore */
 const invoke = tauri.invoke
 
-export {
-  invoke,
-  app,
-  event,
-  notification,
-  path,
-  process,
-  shell,
-  tauri,
-  updater,
-  window,
-  os
-}
+export { invoke, app, event, path, process, shell, tauri, updater, window, os }

+ 0 - 118
tooling/api/src/notification.ts

@@ -1,118 +0,0 @@
-// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
-// SPDX-License-Identifier: Apache-2.0
-// SPDX-License-Identifier: MIT
-
-/**
- * Send toast notifications (brief auto-expiring OS window element) to your user.
- * Can also be used with the Notification Web API.
- *
- * This package is also accessible with `window.__TAURI__.notification` when [`build.withGlobalTauri`](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in `tauri.conf.json` is set to `true`.
- *
- * The APIs must be added to [`tauri.allowlist.notification`](https://tauri.app/v1/api/config/#allowlistconfig.notification) in `tauri.conf.json`:
- * ```json
- * {
- *   "tauri": {
- *     "allowlist": {
- *       "notification": {
- *         "all": true // enable all notification APIs
- *       }
- *     }
- *   }
- * }
- * ```
- * It is recommended to allowlist only the APIs you use for optimal bundle size and security.
- * @module
- */
-
-import { invokeTauriCommand } from './helpers/tauri'
-
-/**
- * Options to send a notification.
- *
- * @since 1.0.0
- */
-interface Options {
-  /** Notification title. */
-  title: string
-  /** Optional notification body. */
-  body?: string
-  /** Optional notification icon. */
-  icon?: string
-}
-
-/** Possible permission values. */
-type Permission = 'granted' | 'denied' | 'default'
-
-/**
- * Checks if the permission to send notifications is granted.
- * @example
- * ```typescript
- * import { isPermissionGranted } from '@tauri-apps/api/notification';
- * const permissionGranted = await isPermissionGranted();
- * ```
- *
- * @since 1.0.0
- */
-async function isPermissionGranted(): Promise<boolean> {
-  if (window.Notification.permission !== 'default') {
-    return Promise.resolve(window.Notification.permission === 'granted')
-  }
-  return invokeTauriCommand({
-    __tauriModule: 'Notification',
-    message: {
-      cmd: 'isNotificationPermissionGranted'
-    }
-  })
-}
-
-/**
- * Requests the permission to send notifications.
- * @example
- * ```typescript
- * import { isPermissionGranted, requestPermission } from '@tauri-apps/api/notification';
- * let permissionGranted = await isPermissionGranted();
- * if (!permissionGranted) {
- *   const permission = await requestPermission();
- *   permissionGranted = permission === 'granted';
- * }
- * ```
- *
- * @returns A promise resolving to whether the user granted the permission or not.
- *
- * @since 1.0.0
- */
-async function requestPermission(): Promise<Permission> {
-  return window.Notification.requestPermission()
-}
-
-/**
- * Sends a notification to the user.
- * @example
- * ```typescript
- * import { isPermissionGranted, requestPermission, sendNotification } from '@tauri-apps/api/notification';
- * let permissionGranted = await isPermissionGranted();
- * if (!permissionGranted) {
- *   const permission = await requestPermission();
- *   permissionGranted = permission === 'granted';
- * }
- * if (permissionGranted) {
- *   sendNotification('Tauri is awesome!');
- *   sendNotification({ title: 'TAURI', body: 'Tauri is awesome!' });
- * }
- * ```
- *
- * @since 1.0.0
- */
-function sendNotification(options: Options | string): void {
-  if (typeof options === 'string') {
-    // eslint-disable-next-line no-new
-    new window.Notification(options)
-  } else {
-    // eslint-disable-next-line no-new
-    new window.Notification(options.title, options)
-  }
-}
-
-export type { Options, Permission }
-
-export { sendNotification, requestPermission, isPermissionGranted }

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott