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

Support slice of files and includes #352

Closed
emoon opened this issue Sep 28, 2018 · 2 comments · Fixed by #550
Closed

Support slice of files and includes #352

emoon opened this issue Sep 28, 2018 · 2 comments · Fixed by #550

Comments

@emoon
Copy link

emoon commented Sep 28, 2018

Something that would be nice would be to allow includes(incs: &[PathBuf]) and something similar for files instead of just one include dir and one file at a time.

While it's not that hard to write

let some_include_dirs = [
  "dir0", "dir1", "dir2"
];

for dir in &some_include_dirs {
    build.include(dir);
}

If the user could supply an array/slice directly it would reduce the code a bit.

@alexcrichton
Copy link
Member

Sounds reasonable to me to support this!

@dtolnay
Copy link
Member

dtolnay commented Oct 8, 2020

files was implemented in #205. I've opened #550 for includes after having looked for this myself.

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 a pull request may close this issue.

3 participants