summary refs log tree commit diff
path: root/ripple/fossil
diff options
context:
space:
mode:
authoredef <edef@unfathomable.blue>2022-04-19 13:36:51 +0000
committeredef <edef@unfathomable.blue>2022-04-19 13:36:51 +0000
commit6a51ad1041f0a5639fc7b0b6e39a04642d5a3c2e (patch)
treef04b691a5a26913638024ae2a328cf38bf302e27 /ripple/fossil
parent7831d9e831c923bf4577da714b220948e4295d34 (diff)
ripple: upgrade blake3 (0.3.8 -> 1.3.1)
Change-Id: I75f2e0ff57e09b026fd1aaaeb86b041ddb8238f4
Diffstat (limited to 'ripple/fossil')
-rw-r--r--ripple/fossil/Cargo.toml2
-rw-r--r--ripple/fossil/src/lib.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/ripple/fossil/Cargo.toml b/ripple/fossil/Cargo.toml
index 0b8838b..70554ea 100644
--- a/ripple/fossil/Cargo.toml
+++ b/ripple/fossil/Cargo.toml
@@ -9,7 +9,7 @@ edition = "2021"
 [dependencies]
 prost = "0.8.0"
 bytes = "1.0.1"
-blake3 = { version = "0.3.8", features = ["rayon"] }
+blake3 = { version = "1.3.1", features = ["rayon"] }
 sled = "0.34.6"
 byteorder = "1.4.3"
 fuser = "0.11.0"
diff --git a/ripple/fossil/src/lib.rs b/ripple/fossil/src/lib.rs
index e65253b..3492789 100644
--- a/ripple/fossil/src/lib.rs
+++ b/ripple/fossil/src/lib.rs
@@ -17,7 +17,7 @@ pub mod store {
 	include!(concat!(env!("OUT_DIR"), "/fossil.store.rs"));
 }
 
-const CHUNK_BYTES: usize = blake3::CHUNK_LEN;
+const CHUNK_BYTES: usize = 0x400;
 const DIGEST_BYTES: usize = blake3::OUT_LEN;
 const OFFSET_BYTES: usize = 4;
 
@@ -83,7 +83,7 @@ impl Store {
 	fn write_blob(&self, data: &[u8]) -> Digest {
 		let ident = {
 			let mut h = blake3::Hasher::new();
-			h.update_with_join::<blake3::join::RayonJoin>(data);
+			h.update_rayon(data);
 			h.finalize()
 		};
 
@@ -109,7 +109,7 @@ impl Store {
 
 		let computed_ident = {
 			let mut h = blake3::Hasher::new();
-			h.update_with_join::<blake3::join::RayonJoin>(&buffer);
+			h.update_rayon(&buffer);
 			h.finalize()
 		};