Skip to content

Commit

Permalink
Add a public file iterator (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzz2000 authored Mar 3, 2024
1 parent e9379a4 commit acde7a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,11 @@ impl Build {
self
}

/// Get the files which will be compiled
pub fn get_files(&self) -> impl Iterator<Item = &Path> {
self.files.iter().map(AsRef::as_ref)
}

/// Set C++ support.
///
/// The other `cpp_*` options will only become active if this is set to
Expand Down

0 comments on commit acde7a1

Please sign in to comment.