diff --git a/Cargo.toml b/Cargo.toml index 7deeb2c..e42e69c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "minicdn" authors = ["Finn Bear"] -version = "0.2.3" +version = "0.2.4" edition = "2021" license = "MIT OR Apache-2.0" repository = "https://github.com/finnbear/minicdn/" @@ -22,8 +22,8 @@ serde = ["minicdn_core/use_serde", "minicdn_macros/serde"] config = ["minicdn_core/config", "minicdn_macros/config"] [dependencies] -minicdn_core = { version = "0.2.3", path = "./minicdn_core" } -minicdn_macros = { version = "0.2.3", path = "./minicdn_macros" } +minicdn_core = { version = "0.2.4", path = "./minicdn_core" } +minicdn_macros = { version = "0.2.4", path = "./minicdn_macros" } [dev-dependencies] serde_json = "1.0" diff --git a/minicdn_core/Cargo.toml b/minicdn_core/Cargo.toml index b5b59a1..a057029 100644 --- a/minicdn_core/Cargo.toml +++ b/minicdn_core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "minicdn_core" -version = "0.2.3" +version = "0.2.4" edition = "2021" license = "MIT OR Apache-2.0" repository = "https://github.com/finnbear/minicdn/" @@ -23,7 +23,7 @@ sha256 = { version = "1.0", optional = true } walkdir = { version = "2.3", optional = true } flate2 = { version = "1", optional = true } brotli = { version = "3.3", optional = true } -webp = { version = "0.2", optional = true } +webp = { version = "0.3", optional = true } image = { version = "0.25", features = [ "png", "jpeg", diff --git a/minicdn_core/src/lib.rs b/minicdn_core/src/lib.rs index 04fa9cd..834e5b8 100644 --- a/minicdn_core/src/lib.rs +++ b/minicdn_core/src/lib.rs @@ -534,7 +534,7 @@ fn last_modified(absolute_path: &str) -> String { #[cfg(feature = "etag")] fn etag(contents: &[u8]) -> String { - let mut etag = sha256::digest_bytes(contents); + let mut etag = sha256::digest(contents); etag.truncate(32); //etag.shrink_to_fit(); etag diff --git a/minicdn_macros/Cargo.toml b/minicdn_macros/Cargo.toml index 1611c2c..633a6e5 100644 --- a/minicdn_macros/Cargo.toml +++ b/minicdn_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "minicdn_macros" -version = "0.2.3" +version = "0.2.4" edition = "2021" license = "MIT OR Apache-2.0" repository = "https://github.com/finnbear/minicdn/" @@ -21,7 +21,7 @@ webp = ["minicdn_core/webp", "minicdn_core/image"] config = ["minicdn_core/config"] [dependencies] -minicdn_core = { version = "0.2.3", path = "../minicdn_core", features = ["walkdir"] } +minicdn_core = { version = "0.2.4", path = "../minicdn_core", features = ["walkdir"] } syn = "1.0" quote = "1.0" proc-macro2 = "1.0"