diff --git a/CHANGELOG.md b/CHANGELOG.md index c744fe2..2dee413 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## 0.10.0 - 07-17-2026 + #### Fixed * Fixed CLI event handling panic when resuming a "restart from beginning" diff --git a/Cargo.lock b/Cargo.lock index 990f772..aff57b7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -388,7 +388,7 @@ checksum = "c3e64b0cc0439b12df2fa678eae89a1c56a529fd067a9115f7827f1fffd22b32" [[package]] name = "cloud-copy" -version = "0.9.0" +version = "0.10.0" dependencies = [ "anyhow", "base64", @@ -1026,13 +1026,12 @@ dependencies = [ [[package]] name = "http-cache-stream" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67c489d9adb5c5ad4a2fc0f7c682f370391ee03abd55fd7b029416c2a20c8345" +checksum = "8d8eec7ff1de297e65b028df92c004c47c1c29b5f3f3a289a06143d662a8f2fd" dependencies = [ "anyhow", "bincode", - "blake3", "bytes", "cfg-if", "futures", @@ -1055,9 +1054,9 @@ dependencies = [ [[package]] name = "http-cache-stream-reqwest" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "279f4e7bfe2aa902ad17a595d4815f7204f9052f215ec4e6d97a1e315e9666aa" +checksum = "65ed6e7c2121f198a21a7949e66672cc1048ff2fd08a5b3f857033bea8a66f8a" dependencies = [ "anyhow", "bytes", diff --git a/Cargo.toml b/Cargo.toml index aab9bee..592f82e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cloud-copy" -version = "0.9.0" +version = "0.10.0" description = "A library for copying files to and from cloud storage." license = "MIT OR Apache-2.0" edition = "2024" @@ -45,7 +45,7 @@ futures = "0.3.31" git-testament = { version = "0.2.6", optional = true } hex = "0.4.3" hmac = "0.13.0" -http-cache-stream-reqwest = "0.4.0" +http-cache-stream-reqwest = "0.5.0" opool = "0.2.0" pin-project-lite = "0.2.16" rand = "0.10.1" diff --git a/src/transfer.rs b/src/transfer.rs index 32b5cff..065cea8 100644 --- a/src/transfer.rs +++ b/src/transfer.rs @@ -15,7 +15,7 @@ use futures::TryFutureExt; use futures::TryStreamExt; use futures::stream; use http_cache_stream_reqwest::CacheStorage; -use http_cache_stream_reqwest::X_CACHE_DIGEST; +use http_cache_stream_reqwest::X_CACHE_KEY; use reqwest::StatusCode; use reqwest::header; use tempfile::NamedTempFile; @@ -324,13 +324,13 @@ where // Check to see if we should link to the cache location if self.backend.config().link_to_cache() - && let Some(digest) = response + && let Some(key) = response .headers() - .get(X_CACHE_DIGEST) + .get(X_CACHE_KEY) .and_then(|v| v.to_str().ok()) && let Some(cache) = self.backend.cache() { - let path = cache.storage().body_path(digest); + let path = cache.storage().body_path(key); if path.is_file() { // Remove the existing temp file and replace it with a hard link fs::remove_file(info.destination).await.ok();