refactor(tvix/store): bump fastcdc dep

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>
This commit is contained in:
Florian Klink 2023-03-10 16:18:21 +01:00 committed by clbot
parent b049b88d2d
commit e4687765d7
4 changed files with 6 additions and 6 deletions

4
tvix/Cargo.lock generated
View file

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

View file

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

View file

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

View file

@ -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,