about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-03-10T15·18+0100
committerclbot <clbot@tvl.fyi>2023-03-11T14·12+0000
commite4687765d79bc07c1252743fe655f0c054ef9ead (patch)
tree2cc466a9c5b9f10a3a8ac1d8e253c9bcbc3fe5b2
parentb049b88d2d7bcb9caef158ffdf9cd931c62d2511 (diff)
refactor(tvix/store): bump fastcdc dep r/5953
This removes the use of Box::new, switching fastcdc to version 3.0.2
with https://github.com/nlfiedler/fastcdc-rs/issues/25 fixed.

Change-Id: I64f388b9e0a7f358e25a8bb7ca0e4df1d3bb01c4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8249
Tested-by: BuildkiteCI
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
-rw-r--r--tvix/Cargo.lock4
-rw-r--r--tvix/Cargo.nix4
-rw-r--r--tvix/store/Cargo.toml2
-rw-r--r--tvix/store/src/import.rs2
4 files changed, 6 insertions, 6 deletions
diff --git a/tvix/Cargo.lock b/tvix/Cargo.lock
index de4d832b8954..c5b34604bddf 100644
--- a/tvix/Cargo.lock
+++ b/tvix/Cargo.lock
@@ -675,9 +675,9 @@ checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed"
 
 [[package]]
 name = "fastcdc"
-version = "3.0.0"
+version = "3.0.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c47726595a8a071d7d8045a837d1179b1964633e256300675aa50c31284a23e2"
+checksum = "3ef4ee6b697e7bbdf002ba496c5efdb899729cb83cc6adc7ef9a776e4d040b5d"
 
 [[package]]
 name = "fastrand"
diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix
index 7167a3cc1370..2d130f42c8a4 100644
--- a/tvix/Cargo.nix
+++ b/tvix/Cargo.nix
@@ -1915,9 +1915,9 @@ rec {
       };
       "fastcdc" = rec {
         crateName = "fastcdc";
-        version = "3.0.0";
+        version = "3.0.2";
         edition = "2018";
-        sha256 = "1qi398l32355b9kh0qr57rin86cv2z8kga25h1yis1wab9cjcxy4";
+        sha256 = "0p8b0i6nwxwsxz3sviiwp2f756dqzmg6qjds0bqbsyvyd5myxx1y";
         authors = [
           "Nathan Fiedler <nathanfiedler@fastmail.fm>"
         ];
diff --git a/tvix/store/Cargo.toml b/tvix/store/Cargo.toml
index 65d3420ab7d3..ac495b63b83d 100644
--- a/tvix/store/Cargo.toml
+++ b/tvix/store/Cargo.toml
@@ -12,7 +12,7 @@ blake3 = { version = "1.3.1", features = ["rayon", "std"] }
 clap = { version = "4.0", features = ["derive", "env"] }
 count-write = "0.1.0"
 data-encoding = "2.3.3"
-fastcdc = "3.0.0"
+fastcdc = "3.0.2"
 lazy_static = "1.4.0"
 nix-compat = { path = "../nix-compat" }
 prost = "0.11.2"
diff --git a/tvix/store/src/import.rs b/tvix/store/src/import.rs
index 564363f1ff1a..d2974d93c030 100644
--- a/tvix/store/src/import.rs
+++ b/tvix/store/src/import.rs
@@ -129,7 +129,7 @@ fn process_entry<BS: BlobService, CS: ChunkService + std::marker::Sync, DS: Dire
             let chunker_max_size = chunker_avg_size * 4;
 
             let chunker = fastcdc::v2020::StreamCDC::new(
-                Box::new(file),
+                file,
                 chunker_min_size,
                 chunker_avg_size,
                 chunker_max_size,