From 76a859f2cc850ca031b5f8e13379f2217d16b274 Mon Sep 17 00:00:00 2001 From: ShuiRuTian <158983297@qq.com> Date: Sat, 11 May 2024 12:25:08 +0800 Subject: [PATCH] bump version of `INDEX_VERSION` --- Cargo.toml | 3 +-- src/index.rs | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d461381..d835d94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,8 +19,7 @@ hex = "0.4.3" memmap2 = { version = "0.5.8", optional = true } miette = "5.7.0" reflink-copy = "0.1.9" -serde = "1.0.130" -serde_derive = "1.0.130" +serde = { version = "1.0.130", features = ["derive"] } serde_json = "1.0.68" base64 = "0.22.0" base64-serde = "0.7.0" diff --git a/src/index.rs b/src/index.rs index f8e4aa1..18db238 100644 --- a/src/index.rs +++ b/src/index.rs @@ -11,7 +11,7 @@ use digest::Digest; use either::{Left, Right}; #[cfg(any(feature = "async-std", feature = "tokio"))] use futures::stream::StreamExt; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use serde_json::Value; use sha1::Sha1; use sha2::Sha256; @@ -26,7 +26,7 @@ use crate::content::path::content_path; use crate::errors::{IoErrorExt, Result}; use crate::put::WriteOpts; -const INDEX_VERSION: &str = "5"; +const INDEX_VERSION: &str = "6"; /// Represents a cache index entry, which points to content. #[derive(PartialEq, Debug)]