Skip to content

Commit c6722b0

Browse files
authored
refactor(deps): remove cdc and switch to rustic_cdc (#348)
Uses https://crates.io/crates/rustic_cdc --------- Signed-off-by: simonsan <[email protected]>
1 parent 093eab3 commit c6722b0

File tree

10 files changed

+22
-393
lines changed

10 files changed

+22
-393
lines changed

Cargo.lock

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/core/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ scrypt = { version = "0.11.0", default-features = false, features = ["std"] } #
6666
binrw = "0.14.0"
6767
hex = { version = "0.4.3", features = ["serde"] }
6868
integer-sqrt = "0.1.5"
69+
rustic_cdc = "0.3.1"
6970
serde = { version = "1.0.210" }
7071
serde-aux = "4.5.0"
7172
serde_derive = "1.0.210"

crates/core/src/archiver/file_archiver.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use std::io::Read;
22

3+
use rustic_cdc::Rabin64;
4+
35
use crate::{
46
archiver::{
57
parent::{ItemWithParent, ParentResult},
@@ -15,7 +17,6 @@ use crate::{
1517
packer::{Packer, PackerStats},
1618
BlobId, BlobType, DataId,
1719
},
18-
cdc::rolling_hash::Rabin64,
1920
chunker::ChunkIter,
2021
crypto::hasher::hash,
2122
error::{ErrorKind, RusticError, RusticResult},
@@ -73,7 +74,7 @@ impl<'a, BE: DecryptWriteBackend, I: ReadGlobalIndex> FileArchiver<'a, BE, I> {
7374
index.total_size(BlobType::Data),
7475
)?;
7576

76-
let rabin = Rabin64::new_with_polynom(6, poly);
77+
let rabin = Rabin64::new_with_polynom(6, &poly);
7778

7879
Ok(Self {
7980
index,

crates/core/src/cdc.rs

-2
This file was deleted.

crates/core/src/cdc/LICENSE.txt

-21
This file was deleted.

crates/core/src/cdc/README.md

-73
This file was deleted.

crates/core/src/cdc/polynom.rs

-59
This file was deleted.

0 commit comments

Comments
 (0)