From b2a78f6dd9bd15ed91acd055218aa835dee91467 Mon Sep 17 00:00:00 2001 From: Xynnn007 Date: Tue, 17 Dec 2024 09:43:20 +0800 Subject: [PATCH] chore(deps): update shadow_rs to v0.37.0 Close #847 Signed-off-by: Xynnn007 --- Cargo.lock | 12 ++++++------ attestation-agent/coco_keyprovider/Cargo.toml | 2 +- attestation-agent/coco_keyprovider/build.rs | 7 ++++++- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 59021dbf1..908fd8292 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "addr2line" @@ -3105,9 +3105,9 @@ dependencies = [ [[package]] name = "is_debug" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06d198e9919d9822d5f7083ba8530e04de87841eaf21ead9af8f2304efd57c89" +checksum = "e8ea828c9d6638a5bd3d8b14e37502b4d56cae910ccf8a5b7f51c7a0eb1d0508" [[package]] name = "is_terminal_polyfill" @@ -3548,7 +3548,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19" dependencies = [ "cfg-if", - "windows-targets 0.52.6", + "windows-targets 0.48.5", ] [[package]] @@ -5935,9 +5935,9 @@ dependencies = [ [[package]] name = "shadow-rs" -version = "0.36.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58cfcd0643497a9f780502063aecbcc4a3212cbe4948fd25ee8fd179c2cf9a18" +checksum = "974eb8222c62a8588bc0f02794dd1ba5b60b3ec88b58e050729d0907ed6af610" dependencies = [ "const_format", "git2", diff --git a/attestation-agent/coco_keyprovider/Cargo.toml b/attestation-agent/coco_keyprovider/Cargo.toml index f2834de0c..0dd9950d1 100644 --- a/attestation-agent/coco_keyprovider/Cargo.toml +++ b/attestation-agent/coco_keyprovider/Cargo.toml @@ -27,7 +27,7 @@ tonic.workspace = true uuid = { workspace = true, features = ["fast-rng", "v4"] } [build-dependencies] -shadow-rs = "0.36.0" +shadow-rs = "0.37.0" tonic-build.workspace = true [dev-dependencies] diff --git a/attestation-agent/coco_keyprovider/build.rs b/attestation-agent/coco_keyprovider/build.rs index f412d755e..42ab4cf83 100644 --- a/attestation-agent/coco_keyprovider/build.rs +++ b/attestation-agent/coco_keyprovider/build.rs @@ -3,7 +3,12 @@ // SPDX-License-Identifier: Apache-2.0 // +use shadow_rs::{BuildPattern, ShadowBuilder}; + fn main() -> shadow_rs::SdResult<()> { tonic_build::compile_protos("../protos/keyprovider.proto")?; - shadow_rs::new() + ShadowBuilder::builder() + .build_pattern(BuildPattern::RealTime) + .build()?; + Ok(()) }