feat(stub): throw compile error in case of enabling fat and thin features
This is more helpful than a weird compilation error on borrow checking rules!
This commit is contained in:
parent
45d04a45d3
commit
63bbfe35d8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue