diff --git a/src/lib.rs b/src/lib.rs index 4b4be9c28..398ec0384 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -758,6 +758,11 @@ impl Build { self } + /// Get the files which will be compiled + pub fn get_files(&self) -> impl Iterator { + self.files.iter().map(AsRef::as_ref) + } + /// Set C++ support. /// /// The other `cpp_*` options will only become active if this is set to