Skip to content

Commit

Permalink
Merge pull request #195 from nix-community/mutually-exclusive-fat-thi…
Browse files Browse the repository at this point in the history
…n-stubs

feat(stub): throw compile error in case of enabling fat and thin feat…
  • Loading branch information
RaitoBezarius authored Jun 10, 2023
2 parents 45d04a4 + 63bbfe3 commit 9f97a90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rust/stub/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ mod fat;
#[cfg(feature = "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 log::info;
use measure::measure_image;
Expand Down

0 comments on commit 9f97a90

Please # to comment.