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>
This commit is contained in:
renovate[bot]
2021-08-08 21:15:43 -03:00
committed by GitHub
parent 892c63a053
commit c2f35f3b89
2 changed files with 2 additions and 2 deletions

View File

@@ -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" ] }

View File

@@ -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()
};