Merge pull request #195 from nix-community/mutually-exclusive-fat-thin-stubs

feat(stub): throw compile error in case of enabling fat and thin feat…
This commit is contained in:
Ryan Lahfa 2023-06-10 18:45:56 +02:00 committed by GitHub
commit 9f97a908e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ mod fat;
#[cfg(feature = "thin")] #[cfg(feature = "thin")]
mod thin; mod thin;
#[cfg(all(feature = "fat", feature = "thin"))]
compile_error!("A thin and fat stub cannot be produced at the same time, disable either `thin` or `fat` feature");
use efivars::{export_efi_variables, get_loader_features, EfiLoaderFeatures}; use efivars::{export_efi_variables, get_loader_features, EfiLoaderFeatures};
use log::info; use log::info;
use measure::measure_image; use measure::measure_image;