Bläddra i källkod

chore(deps) Update Rust crate uuid to v1 (#3927)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
renovate[bot] 3 år sedan
förälder
incheckning
395a259019
2 ändrade filer med 6 tillägg och 6 borttagningar
  1. 1 1
      tooling/bundler/Cargo.toml
  2. 5 5
      tooling/bundler/src/bundle/windows/msi/wix.rs

+ 1 - 1
tooling/bundler/Cargo.toml

@@ -44,7 +44,7 @@ os_pipe = "1"
 
 [target."cfg(target_os = \"windows\")".dependencies]
 attohttpc = "0.18"
-uuid = { version = "0.8", features = [ "v4", "v5" ] }
+uuid = { version = "1", features = [ "v4", "v5" ] }
 bitness = "0.4"
 winreg = "0.10"
 sha2 = "0.10"

+ 5 - 5
tooling/bundler/src/bundle/windows/msi/wix.rs

@@ -133,7 +133,7 @@ impl ResourceDirectory {
     } else {
       format!(
         r#"<Directory Id="I{id}" Name="{name}">{files}{directories}</Directory>"#,
-        id = Uuid::new_v4().to_simple(),
+        id = Uuid::new_v4().as_simple(),
         name = self.name,
         files = files,
         directories = directories,
@@ -738,7 +738,7 @@ fn generate_binaries_data(settings: &Settings) -> crate::Result<Vec<Binary>> {
         .into_os_string()
         .into_string()
         .expect("failed to read external binary path"),
-      id: format!("I{}", Uuid::new_v4().to_simple()),
+      id: format!("I{}", Uuid::new_v4().as_simple()),
     });
   }
 
@@ -751,7 +751,7 @@ fn generate_binaries_data(settings: &Settings) -> crate::Result<Vec<Binary>> {
           .into_os_string()
           .into_string()
           .expect("failed to read binary path"),
-        id: format!("I{}", Uuid::new_v4().to_simple()),
+        id: format!("I{}", Uuid::new_v4().as_simple()),
       })
     }
   }
@@ -808,7 +808,7 @@ fn generate_resource_data(settings: &Settings) -> crate::Result<ResourceMap> {
     let path = dll?;
     let resource_path = path.to_string_lossy().to_string();
     dlls.push(ResourceFile {
-      id: format!("I{}", Uuid::new_v4().to_simple()),
+      id: format!("I{}", Uuid::new_v4().as_simple()),
       guid: Uuid::new_v4().to_string(),
       path: resource_path,
     });
@@ -835,7 +835,7 @@ fn generate_resource_data(settings: &Settings) -> crate::Result<ResourceMap> {
       .expect("failed to read resource path");
 
     let resource_entry = ResourceFile {
-      id: format!("I{}", Uuid::new_v4().to_simple()),
+      id: format!("I{}", Uuid::new_v4().as_simple()),
       guid: Uuid::new_v4().to_string(),
       path: resource_path,
     };