mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
chore(deps): update rust crate rand to 0.9 (#13700)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: FabianLars <github@fabianlars.de>
This commit is contained in:
4
Cargo.lock
generated
4
Cargo.lock
generated
@@ -8548,7 +8548,7 @@ dependencies = [
|
||||
"phf 0.11.3",
|
||||
"plist",
|
||||
"pretty_assertions",
|
||||
"rand 0.8.5",
|
||||
"rand 0.9.1",
|
||||
"regex",
|
||||
"resvg",
|
||||
"semver",
|
||||
@@ -8662,7 +8662,7 @@ dependencies = [
|
||||
"os_pipe",
|
||||
"p12",
|
||||
"plist",
|
||||
"rand 0.8.5",
|
||||
"rand 0.9.1",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"tempfile",
|
||||
|
||||
@@ -109,7 +109,7 @@ elf = "0.7"
|
||||
memchr = "2"
|
||||
tempfile = "3"
|
||||
uuid = { version = "1", features = ["v5"] }
|
||||
rand = "0.8"
|
||||
rand = "0.9"
|
||||
|
||||
[dev-dependencies]
|
||||
insta = "1"
|
||||
|
||||
@@ -30,7 +30,7 @@ use cargo_mobile2::{
|
||||
opts::{NoiseLevel, Profile},
|
||||
target::{call_for_targets_with_fallback, TargetInvalid, TargetTrait},
|
||||
};
|
||||
use rand::distributions::{Alphanumeric, DistString};
|
||||
use rand::distr::{Alphanumeric, SampleString};
|
||||
|
||||
use std::{
|
||||
env::{set_current_dir, var, var_os},
|
||||
@@ -367,7 +367,7 @@ fn run_build(
|
||||
// we must force sign the app binary with a dummy certificate just to preserve the entitlements
|
||||
// target.export() will sign it with an actual certificate for us
|
||||
if skip_signing {
|
||||
let password = Alphanumeric.sample_string(&mut rand::thread_rng(), 16);
|
||||
let password = Alphanumeric.sample_string(&mut rand::rng(), 16);
|
||||
let certificate = tauri_macos_sign::certificate::generate_self_signed(
|
||||
tauri_macos_sign::certificate::SelfSignedCertificateRequest {
|
||||
algorithm: "rsa".to_string(),
|
||||
|
||||
@@ -18,7 +18,7 @@ x509-certificate = "0.23"
|
||||
once-cell-regex = "0.2"
|
||||
os_pipe = "1"
|
||||
plist = "1"
|
||||
rand = "0.8"
|
||||
rand = "0.9"
|
||||
dirs = "6"
|
||||
log = { version = "0.4.21", features = ["kv"] }
|
||||
apple-codesign = { version = "0.27", default-features = false }
|
||||
|
||||
@@ -10,7 +10,7 @@ use std::{
|
||||
|
||||
use crate::{assert_command, CommandExt};
|
||||
use anyhow::Result;
|
||||
use rand::distributions::{Alphanumeric, DistString};
|
||||
use rand::distr::{Alphanumeric, SampleString};
|
||||
|
||||
mod identity;
|
||||
|
||||
@@ -67,9 +67,9 @@ impl Keychain {
|
||||
let home_dir = dirs::home_dir().ok_or_else(|| anyhow::anyhow!("failed to resolve home dir"))?;
|
||||
let keychain_path = home_dir.join("Library").join("Keychains").join(format!(
|
||||
"{}.keychain-db",
|
||||
Alphanumeric.sample_string(&mut rand::thread_rng(), 16)
|
||||
Alphanumeric.sample_string(&mut rand::rng(), 16)
|
||||
));
|
||||
let keychain_password = Alphanumeric.sample_string(&mut rand::thread_rng(), 16);
|
||||
let keychain_password = Alphanumeric.sample_string(&mut rand::rng(), 16);
|
||||
|
||||
let keychain_list_output = Command::new("security")
|
||||
.args(["list-keychain", "-d", "user"])
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
use std::{ffi::OsStr, path::PathBuf, process::Command};
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
use rand::distributions::{Alphanumeric, DistString};
|
||||
use rand::distr::{Alphanumeric, SampleString};
|
||||
|
||||
pub struct ProvisioningProfile {
|
||||
path: PathBuf,
|
||||
@@ -22,7 +22,7 @@ impl ProvisioningProfile {
|
||||
|
||||
let provisioning_profile_path = provisioning_profiles_folder.join(format!(
|
||||
"{}.mobileprovision",
|
||||
Alphanumeric.sample_string(&mut rand::thread_rng(), 16)
|
||||
Alphanumeric.sample_string(&mut rand::rng(), 16)
|
||||
));
|
||||
super::decode_base64(base64, &provisioning_profile_path)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user