浏览代码

chore(deps) Update Tauri Bundler (#1045)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
renovate[bot] 4 年之前
父节点
当前提交
d13dcd9fd8
共有 4 个文件被更改,包括 14 次插入31 次删除
  1. 5 0
      .changes/rust-update.md
  2. 2 2
      cli/tauri-bundler/Cargo.toml
  3. 6 28
      cli/tauri-bundler/src/bundle/settings.rs
  4. 1 1
      rust-toolchain

+ 5 - 0
.changes/rust-update.md

@@ -0,0 +1,5 @@
+---
+"tauri": patch
+---
+
+Update minimum Rust version to 1.42.0 due to a dependency update.

+ 2 - 2
cli/tauri-bundler/Cargo.toml

@@ -35,14 +35,14 @@ strsim = "0.10.0"
 tar = "0.4"
 target_build_utils = "0.3"
 term = "0.6.1"
-toml = "0.5.6"
+toml = "0.5.7"
 uuid = { version = "0.8", features = [ "v5" ] }
 walkdir = "2"
 lazy_static = { version = "1.4" }
 handlebars = { version = "3.5" }
 
 [target."cfg(target_os = \"windows\")".dependencies]
-attohttpc = { version = "0.15.0" }
+attohttpc = { version = "0.16.0" }
 regex = { version = "1" }
 runas = "0.2"
 

+ 6 - 28
cli/tauri-bundler/src/bundle/settings.rs

@@ -646,12 +646,7 @@ impl Settings {
 
   /// Returns the bundle's identifier
   pub fn bundle_identifier(&self) -> &str {
-    self
-      .bundle_settings
-      .identifier
-      .as_ref()
-      .map(String::as_str)
-      .unwrap_or("")
+    self.bundle_settings.identifier.as_deref().unwrap_or("")
   }
 
   /// Returns an iterator over the icon files to be used for this bundle.
@@ -720,7 +715,7 @@ impl Settings {
 
   /// Returns the copyright text.
   pub fn copyright_string(&self) -> Option<&str> {
-    self.bundle_settings.copyright.as_ref().map(String::as_str)
+    self.bundle_settings.copyright.as_deref()
   }
 
   /// Returns the list of authors name.
@@ -743,12 +738,7 @@ impl Settings {
 
   /// Returns the package's homepage URL, defaulting to "" if not defined.
   pub fn homepage_url(&self) -> &str {
-    &self
-      .package
-      .homepage
-      .as_ref()
-      .map(String::as_str)
-      .unwrap_or("")
+    &self.package.homepage.as_deref().unwrap_or("")
   }
 
   /// Returns the app's category.
@@ -767,11 +757,7 @@ impl Settings {
 
   /// Returns the app's long description.
   pub fn long_description(&self) -> Option<&str> {
-    self
-      .bundle_settings
-      .long_description
-      .as_ref()
-      .map(String::as_str)
+    self.bundle_settings.long_description.as_deref()
   }
 
   /// Returns the dependencies of the debian bundle.
@@ -797,20 +783,12 @@ impl Settings {
 
   /// Returns the minimum system version of the macOS bundle.
   pub fn osx_minimum_system_version(&self) -> Option<&str> {
-    self
-      .bundle_settings
-      .osx_minimum_system_version
-      .as_ref()
-      .map(String::as_str)
+    self.bundle_settings.osx_minimum_system_version.as_deref()
   }
 
   /// Returns the path to the DMG bundle license.
   pub fn osx_license(&self) -> Option<&str> {
-    self
-      .bundle_settings
-      .osx_license
-      .as_ref()
-      .map(String::as_str)
+    self.bundle_settings.osx_license.as_deref()
   }
 
   /// Returns whether the macOS .app bundle should use the bootstrap script or not.

+ 1 - 1
rust-toolchain

@@ -1 +1 @@
-1.41.0
+1.42.0