From a9d6b2112e47170af2b16c95b56bc55d4cc29d00 Mon Sep 17 00:00:00 2001 From: pawelpros Date: Thu, 5 Sep 2024 14:55:20 +0200 Subject: [PATCH] Changed Tss-esapi dependency to be optional (#58) - Bump: tss-esapi to version 7.5.1 - Tss-esapi dependency is now optional required only for attester and verifier features Signed-off-by: Pawel Proskurnicki --- az-cvm-vtpm/Cargo.toml | 7 ++++--- az-cvm-vtpm/src/lib.rs | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/az-cvm-vtpm/Cargo.toml b/az-cvm-vtpm/Cargo.toml index 348caf3..63c6b56 100644 --- a/az-cvm-vtpm/Cargo.toml +++ b/az-cvm-vtpm/Cargo.toml @@ -29,13 +29,14 @@ serde-big-array = "0.5.1" sev.workspace = true sha2 = "0.10.8" thiserror.workspace = true -tss-esapi = "7.5" +tss-esapi = { version = "7.5.1", optional = true } zerocopy.workspace = true [features] +tpm = ["tss-esapi"] default = ["attester", "verifier"] -attester = [] -verifier = ["openssl", "sev/openssl"] +attester = ["tpm"] +verifier = ["openssl", "sev/openssl", "tpm"] [workspace.dependencies] bincode = "1.3.1" diff --git a/az-cvm-vtpm/src/lib.rs b/az-cvm-vtpm/src/lib.rs index 40a8e6b..6c6e308 100644 --- a/az-cvm-vtpm/src/lib.rs +++ b/az-cvm-vtpm/src/lib.rs @@ -3,4 +3,5 @@ pub mod hcl; pub mod tdx; +#[cfg(feature = "tpm")] pub mod vtpm;