Skip to content

Commit ee3d1a1

Browse files
authored
Merge pull request #1798 from kubewarden/renovate/major-rust-dependencies
fix(deps): update rust dependencies to v2
2 parents 943b34f + 8ea1a07 commit ee3d1a1

5 files changed

Lines changed: 7 additions & 17 deletions

File tree

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/policy-evaluator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ version = "0.32.0"
1414
anyhow = { workspace = true }
1515
base64 = { workspace = true }
1616
burrego = { path = "../burrego" }
17-
cached = { version = "1.1", features = ["async_tokio_rt_multi_thread"] }
17+
cached = { version = "2.0", features = ["async_tokio_rt_multi_thread"] }
1818
chrono = { version = "0.4", default-features = false }
1919
dns-lookup = "3.0"
2020
email_address = { version = "0.2", features = ["serde"] }

crates/policy-evaluator/src/callback_handler/kubernetes.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ pub(crate) async fn get_resource(
100100

101101
#[cached(
102102
ttl = 5,
103-
result = true,
104103
sync_writes = "default",
105104
key = "String",
106105
convert = r#"{ format!("get_resource_cached({},{}),{},{:?}", api_version, kind, name, namespace) }"#,
@@ -186,7 +185,6 @@ pub(crate) async fn can_i(
186185

187186
#[cached(
188187
ttl = 5,
189-
result = true,
190188
// We can use the request type as key because cached requires the key to implement Hash + Eq
191189
// traits. As we already implement these traits, there is no need to have a custom logic for key
192190
// generation. If we do that, we will only convert it into a type (e.g. string) that

crates/policy-evaluator/src/callback_handler/oci.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ impl Client {
8686
// * only successful results are cached
8787
#[cached(
8888
ttl = 60,
89-
result = true,
9089
sync_writes = "default",
9190
key = "String",
9291
convert = r#"{ format!("{}", img) }"#,
@@ -114,7 +113,6 @@ pub(crate) async fn get_oci_digest_cached(
114113
// * only successful results are cached
115114
#[cached(
116115
ttl = 60,
117-
result = true,
118116
sync_writes = "default",
119117
key = "String",
120118
convert = r#"{ format!("{}", img) }"#,
@@ -129,7 +127,6 @@ pub(crate) async fn get_oci_manifest_cached(
129127

130128
#[cached(
131129
ttl = 60,
132-
result = true,
133130
sync_writes = "default",
134131
key = "String",
135132
convert = r#"{ format!("{}", img) }"#,

crates/policy-evaluator/src/callback_handler/sigstore_verification.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ impl Client {
267267
// * only successful results are cached
268268
#[cached(
269269
ttl = 60,
270-
result = true,
271270
sync_writes = "default",
272271
key = "String",
273272
convert = r#"{ format!("{}{:?}{:?}", image, pub_keys, annotations)}"#,
@@ -294,7 +293,6 @@ pub(crate) async fn get_sigstore_pub_key_verification_cached(
294293
// * only successful results are cached
295294
#[cached(
296295
ttl = 60,
297-
result = true,
298296
sync_writes = "default",
299297
key = "String",
300298
convert = r#"{ format!("{}{:?}{:?}", image, keyless, annotations)}"#,
@@ -321,7 +319,6 @@ pub(crate) async fn get_sigstore_keyless_verification_cached(
321319
// * only successful results are cached
322320
#[cached(
323321
ttl = 60,
324-
result = true,
325322
sync_writes = "default",
326323
key = "String",
327324
convert = r#"{ format!("{}{:?}{:?}", image, keyless_prefix, annotations)}"#,
@@ -348,7 +345,6 @@ pub(crate) async fn get_sigstore_keyless_prefix_verification_cached(
348345
// * only successful results are cached
349346
#[cached(
350347
ttl = 60,
351-
result = true,
352348
sync_writes = "default",
353349
key = "String",
354350
convert = r#"{ format!("{}{:?}{:?}{:?}", image, owner, repo, annotations)}"#,
@@ -404,7 +400,6 @@ fn get_sigstore_certificate_verification_cache_key(
404400

405401
#[cached(
406402
ttl = 60,
407-
result = true,
408403
sync_writes = "default",
409404
key = "String",
410405
convert = r#"{ format!("{}", get_sigstore_certificate_verification_cache_key(image, certificate, certificate_chain, require_rekor_bundle, annotations.as_ref()))}"#,

0 commit comments

Comments
 (0)