Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method to add multiple includes: build.includes(...) #550

Merged
merged 1 commit into from Oct 8, 2020
Merged

Method to add multiple includes: build.includes(...) #550

merged 1 commit into from Oct 8, 2020

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Oct 8, 2020

Closes #352.

This adds an includes method to call include(...) for each dir in an iterator, matching the files method from #205 which calls file(...) for each source file in an iterator.

My immediate use case for this involves a bunch of dirs that may or may not be selected (Option<PathBuf>) so that's what I put in the documentation, but any other iterator would work.

@alexcrichton alexcrichton merged commit cc8a249 into rust-lang:master Oct 8, 2020
@alexcrichton
Copy link
Member

Looks good to me, thanks!

@dtolnay dtolnay deleted the includes branch October 8, 2020 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support slice of files and includes
2 participants