Skip to content

Commit acde7a1

Browse files
authored
Add a public file iterator (#987)
1 parent e9379a4 commit acde7a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,11 @@ impl Build {
758758
self
759759
}
760760

761+
/// Get the files which will be compiled
762+
pub fn get_files(&self) -> impl Iterator<Item = &Path> {
763+
self.files.iter().map(AsRef::as_ref)
764+
}
765+
761766
/// Set C++ support.
762767
///
763768
/// The other `cpp_*` options will only become active if this is set to

0 commit comments

Comments
 (0)