diff --git a/lib/vfs/src/lib.rs b/lib/vfs/src/lib.rs index 601a8d7915c..77eb095cf75 100644 --- a/lib/vfs/src/lib.rs +++ b/lib/vfs/src/lib.rs @@ -6,6 +6,12 @@ use std::path::{Path, PathBuf}; use thiserror::Error; use tracing::debug; +#[cfg(all(not(feature = "host_fs"), not(feature = "mem_fs")))] +compile_error!("At least the `host_fs` or the `mem_fs` feature must be enabled. Please, pick one."); + +#[cfg(all(feature = "host_fs", feature = "mem_fs"))] +compile_error!("The `host_fs` and `mem_fs` features are mutually exclusive."); + #[cfg(feature = "host_fs")] pub mod host_fs; //pub mod vfs_fs;