Browse Source

chore(deps) Update Rust crate blake3 to v1 (#2305)

* chore(deps) Update Rust crate blake3 to v1

* fix build

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
renovate[bot] 4 năm trước cách đây
mục cha
commit
c2f35f3b89

+ 1 - 1
core/tauri-codegen/Cargo.toml

@@ -12,7 +12,7 @@ exclude = [ ".license_template", "CHANGELOG.md", "/target" ]
 readme = "README.md"
 
 [dependencies]
-blake3 = { version = "0.3", features = [ "rayon" ] }
+blake3 = { version = "1.0", features = [ "rayon" ] }
 proc-macro2 = "1"
 quote = "1"
 serde = { version = "1", features = [ "derive" ] }

+ 1 - 1
core/tauri-codegen/src/embedded_assets.rs

@@ -246,7 +246,7 @@ impl EmbeddedAssets {
       if input.len() < MULTI_HASH_SIZE_LIMIT {
         hasher.update(&input);
       } else {
-        hasher.update_with_join::<blake3::join::RayonJoin>(&input);
+        hasher.update_rayon(&input);
       }
       hasher.finalize().to_hex()
     };