Skip to content

Commit

Permalink
Update webp dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Jul 10, 2024
1 parent 2a73d7a commit cfa7506
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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/"
Expand All @@ -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"
4 changes: 2 additions & 2 deletions minicdn_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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/"
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion minicdn_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions minicdn_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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/"
Expand All @@ -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"
Expand Down

0 comments on commit cfa7506

Please sign in to comment.