diff --git a/tools/buildsys/src/manifest.rs b/tools/buildsys/src/manifest.rs index 259c1a74..e68af3de 100644 --- a/tools/buildsys/src/manifest.rs +++ b/tools/buildsys/src/manifest.rs @@ -498,6 +498,11 @@ impl ManifestInfo { } } } + for experiment in EXPERIMENTAL_IMAGE_FEATURES { + if features.contains(experiment) { + println!("cargo:warning=Image feature {experiment} is experimental; use at your own risk!"); + } + } Some(features) } @@ -797,6 +802,8 @@ pub enum ImageFeature { HostContainers, } +const EXPERIMENTAL_IMAGE_FEATURES: [&ImageFeature; 1] = [&ImageFeature::ErofsRootPartition]; + impl TryFrom for ImageFeature { type Error = Error; fn try_from(s: String) -> Result {