From cb5bd26569ba33ea0cf1b696a9f0da42687a9185 Mon Sep 17 00:00:00 2001 From: edef Date: Wed, 4 May 2022 21:52:29 +0000 Subject: third_party/cachunker: init This is the BuzHash content-defined chunker extracted from Lennart Poettering's casync, almost verbatim, along with Rust bindings so we can actually use it safely. The bindings are a little bit constrained, since they don't support streaming use, unlike the code they are wrapping. This suffices for our use case: performance and correctness comparison to our native Rust implementation, which should behave identically and perform better. Change-Id: Iee4296f661b036620bafef5a6c6671fe1a750bb6 --- third_party/cachunker/Cargo.lock | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 third_party/cachunker/Cargo.lock (limited to 'third_party/cachunker/Cargo.lock') diff --git a/third_party/cachunker/Cargo.lock b/third_party/cachunker/Cargo.lock new file mode 100644 index 0000000..3c09e9b --- /dev/null +++ b/third_party/cachunker/Cargo.lock @@ -0,0 +1,16 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "cachunker" +version = "0.1.0" +dependencies = [ + "cc", +] + +[[package]] +name = "cc" +version = "1.0.73" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" -- cgit 1.4.1