Skip to content

Commit b4544b6

Browse files
renovate[bot]renovate-botlucasfernog
authored
chore(deps) Update Tauri API (#1072)
Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent 9e0b3d8 commit b4544b6

18 files changed

Lines changed: 18 additions & 44 deletions

File tree

.changes/rust-version.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": minor
3+
---
4+
5+
Minimum Rust version updated to 1.47.0. Run `$ rustup update` to update to the latest version.

cli/tauri-bundler/src/bundle/category.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
use std::fmt;
22

3-
use serde;
4-
use strsim;
5-
63
const CONFIDENCE_THRESHOLD: f64 = 0.8;
74

85
const OSX_APP_CATEGORY_PREFIX: &str = "public.app-category.";

cli/tauri-bundler/src/bundle/common.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
use crate::Settings;
2-
use std;
32
use std::ffi::OsStr;
43
use std::fs::{self, File};
54
use std::io::{self, BufRead, BufReader, BufWriter, Write};
65
use std::path::{Component, Path, PathBuf};
76
use std::process::{Command, Stdio};
87

9-
use term;
10-
use walkdir;
11-
128
/// Returns true if the path has a filename indicating that it is a high-desity
139
/// "retina" icon. Specifically, returns true the the file stem ends with
1410
/// "@2x" (a convention specified by the [Apple developer docs](
@@ -300,10 +296,8 @@ pub fn execute_with_verbosity(cmd: &mut Command, settings: &Settings) -> crate::
300296
#[cfg(test)]
301297
mod tests {
302298
use super::{copy_dir, create_file, is_retina, resource_relpath, symlink_file};
303-
use std;
304299
use std::io::Write;
305300
use std::path::PathBuf;
306-
use tempfile;
307301

308302
#[test]
309303
fn create_file_with_parent_dirs() {

cli/tauri-bundler/src/bundle/deb_bundle.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,10 @@ use super::common;
2222
use crate::Settings;
2323

2424
use anyhow::Context;
25-
use ar;
26-
use icns;
2725
use image::png::PngDecoder;
2826
use image::{self, GenericImageView, ImageDecoder};
2927
use libflate::gzip;
30-
use md5;
3128
use std::process::{Command, Stdio};
32-
use tar;
3329
use walkdir::WalkDir;
3430

3531
use std::collections::BTreeSet;

cli/tauri-bundler/src/bundle/dmg_bundle.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
2727
}
2828
);
2929
let dmg_name = format!("{}.dmg", &package_base_name);
30-
let dmg_path = output_path.join(&dmg_name.clone());
30+
let dmg_path = output_path.join(&dmg_name);
3131

3232
let bundle_name = &format!("{}.app", &package_base_name);
3333
let bundle_dir = settings.project_out_directory().join("bundle/osx");
@@ -49,7 +49,7 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
4949
let bundle_script_path = output_path.join("bundle_dmg.sh");
5050
let license_script_path = support_directory_path.join("dmg-license.py");
5151

52-
common::print_bundling(format!("{:?}", &dmg_path.clone()).as_str())?;
52+
common::print_bundling(format!("{:?}", &dmg_path).as_str())?;
5353

5454
// write the scripts
5555
write(

cli/tauri-bundler/src/bundle/ios_bundle.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use super::common;
1212
use crate::Settings;
1313

1414
use anyhow::Context;
15-
use icns;
1615
use image::png::PngDecoder;
1716
use image::{self, GenericImageView, ImageDecoder};
1817

cli/tauri-bundler/src/bundle/osx_bundle.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ use super::common;
2121
use crate::Settings;
2222

2323
use anyhow::Context;
24-
use chrono;
25-
use dirs_next;
26-
use icns;
2724
use image::{self, GenericImageView};
2825

2926
use std::cmp::min;

cli/tauri-bundler/src/bundle/settings.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ use crate::bundle::common;
33
use crate::bundle::platform::target_triple;
44

55
use clap::ArgMatches;
6-
use glob;
76
use serde::Deserialize;
87
use target_build_utils::TargetInfo;
9-
use toml;
10-
use walkdir;
118

12-
use std;
139
use std::collections::HashMap;
1410
use std::fs::File;
1511
use std::io::Read;
@@ -433,10 +429,9 @@ impl Settings {
433429
}
434430

435431
if binaries.len() == 1 {
436-
binaries.get_mut(0).and_then(|bin| {
432+
if let Some(bin) = binaries.get_mut(0) {
437433
bin.main = true;
438-
Some(bin)
439-
});
434+
}
440435
}
441436

442437
let bundle_settings = parse_external_bin(bundle_settings)?;
@@ -961,7 +956,6 @@ impl<'a> Iterator for ResourcePaths<'a> {
961956
#[cfg(test)]
962957
mod tests {
963958
use super::{AppCategory, BundleSettings, CargoSettings};
964-
use toml;
965959

966960
#[test]
967961
fn parse_cargo_toml() {

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.42.0
1+
1.47.0

tauri-api/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ tempfile = "3"
2525
either = "1.6.1"
2626
tar = "0.4"
2727
flate2 = "1"
28-
anyhow = "1.0.33"
29-
thiserror = "1.0.21"
28+
anyhow = "1.0.34"
29+
thiserror = "1.0.22"
3030
rand = "0.7"
3131
nfd = "0.0.4"
3232
tauri-dialog = "0.1.0"

0 commit comments

Comments
 (0)