diff --git a/src/context/file_access_interface.rs b/src/context/file_access_interface.rs index 2d93e63..d269edf 100644 --- a/src/context/file_access_interface.rs +++ b/src/context/file_access_interface.rs @@ -1,10 +1,16 @@ use std::fmt::Debug; use std::path::PathBuf; +#[cfg(any(feature = "compare", feature = "foreign_document_test"))] pub trait FileAccessInterface: Sync + Debug { fn read_file(&self, path: &str) -> Result; } +#[cfg(not(any(feature = "compare", feature = "foreign_document_test")))] +pub trait FileAccessInterface: Debug { + fn read_file(&self, path: &str) -> Result; +} + #[derive(Debug, Clone)] pub struct LocalFileAccessInterface { pub working_directory: Option,