diff --git a/Cargo.lock b/Cargo.lock index 5e0fd46574..44ea7eb763 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2278,7 +2278,22 @@ dependencies = [ "bincode", "cacache 12.0.0", "http 0.2.12", - "http-cache-semantics", + "http-cache-semantics 1.0.2", + "httpdate", + "serde", + "url", +] + +[[package]] +name = "http-cache" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33b65cd1687caf2c7fff496741a2f264c26f54e6d6cec03dac8f276fa4e5430e" +dependencies = [ + "async-trait", + "bincode", + "http 1.1.0", + "http-cache-semantics 2.1.0", "httpdate", "moka", "serde", @@ -2287,19 +2302,18 @@ dependencies = [ [[package]] name = "http-cache-reqwest" -version = "0.13.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8285341ce7e709c56a0f259ff1c789c70edfbaa88acd69d27e4d63980b92dc" +checksum = "735586904a5ce0c13877c57cb4eb8195eb7c11ec1ffd64d4db053fb8559ca62e" dependencies = [ "anyhow", "async-trait", - "http 0.2.12", - "http-cache", - "http-cache-semantics", - "reqwest 0.11.27", - "reqwest-middleware", + "http 1.1.0", + "http-cache 0.20.0", + "http-cache-semantics 2.1.0", + "reqwest 0.12.9", + "reqwest-middleware 0.4.0", "serde", - "task-local-extensions", "url", ] @@ -2316,6 +2330,18 @@ dependencies = [ "time", ] +[[package]] +name = "http-cache-semantics" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92baf25cf0b8c9246baecf3a444546360a97b569168fdf92563ee6a47829920c" +dependencies = [ + "http 1.1.0", + "http-serde 2.1.1", + "serde", + "time", +] + [[package]] name = "http-serde" version = "1.1.3" @@ -4765,6 +4791,21 @@ dependencies = [ "thiserror 1.0.69", ] +[[package]] +name = "reqwest-middleware" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1ccd3b55e711f91a9885a2fa6fbbb2e39db1776420b062efc058c6410f7e5e3" +dependencies = [ + "anyhow", + "async-trait", + "http 1.1.0", + "reqwest 0.12.9", + "serde", + "thiserror 1.0.69", + "tower-service", +] + [[package]] name = "resource" version = "0.5.0" @@ -5638,7 +5679,7 @@ dependencies = [ "htpasswd-verify", "http 0.2.12", "http-cache-reqwest", - "http-cache-semantics", + "http-cache-semantics 1.0.2", "httpmock", "hyper 0.14.31", "hyper-rustls 0.25.0", @@ -5680,7 +5721,7 @@ dependencies = [ "rand", "regex", "reqwest 0.11.27", - "reqwest-middleware", + "reqwest-middleware 0.2.5", "resource", "rquickjs", "rustls 0.23.19", @@ -5794,9 +5835,9 @@ version = "0.1.0" dependencies = [ "async-trait", "http 0.2.12", - "http-cache", + "http-cache 0.18.0", "http-cache-reqwest", - "http-cache-semantics", + "http-cache-semantics 1.0.2", "moka", "reqwest 0.11.27", "serde", diff --git a/Cargo.toml b/Cargo.toml index 68f25713f8..7aa91af678 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ tailcall-valid = "0.1.1" # one needs to add default feature tag if it is something IO related or might conflict with WASM mimalloc = { version = "0.1.41", default-features = false, optional = true } -http-cache-reqwest = { version = "0.13.0", features = [ +http-cache-reqwest = { version = "0.15.0", features = [ "manager-moka", ], default-features = false, optional = true } moka = { version = "0.12.7", default-features = false, features = [ diff --git a/tailcall-http-cache/Cargo.toml b/tailcall-http-cache/Cargo.toml index 7427caa3bc..658de56ac3 100644 --- a/tailcall-http-cache/Cargo.toml +++ b/tailcall-http-cache/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" publish = false [dependencies] -http-cache-reqwest = { version = "0.13.0", default-features = false, features = ["manager-moka"] } +http-cache-reqwest = { version = "0.15.0", default-features = false, features = ["manager-moka"] } moka = { version = "0.12.7", default-features = false, features = [ "future", ]}