diff --git a/src/main.rs b/src/main.rs index ba49a4c14..9521b7afb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -662,6 +662,9 @@ fn start_vmm(toplevel: TopLevel) -> Result, Error> { } fn main() { + #[cfg(all(feature = "tdx", feature = "sev_snp"))] + compile_error!("Feature 'tdx' and 'sev_snp' are mutually exclusive."); + #[cfg(feature = "dhat-heap")] let _profiler = dhat::Profiler::new_heap();