Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

add sync/async mode check for features input. #189

Merged
merged 2 commits into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/spdm-emu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

#![forbid(unsafe_code)]

#[cfg(all(
feature = "is_sync",
any(feature = "async-executor", feature = "async-tokio")
))]
compile_error!("Only support either sync mode or async mode, not both at the same time!");

#[cfg(not(feature = "is_sync"))]
pub mod async_runtime;
pub mod crypto;
Expand Down
2 changes: 1 addition & 1 deletion test/spdm-responder-emu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ td-benchmark = { git = "https://github.com/confidential-containers/td-shim.git",

[features]
default = ["spdm-emu/default", "async-executor", "test_stack_size"]
mut-auth = ["spdm-emu/mut-auth", "async-executor"]
mut-auth = ["spdm-emu/mut-auth"]
mandatory-mut-auth = ["mut-auth", "spdm-emu/mandatory-mut-auth"]
spdm-ring = ["spdm-emu/spdm-ring"]
spdm-mbedtls = ["spdm-emu/spdm-mbedtls"]
Expand Down
Loading