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

Place generated files in $OUT_DIR #13

Merged
merged 1 commit into from Mar 14, 2018
Merged

Conversation

mbrubeck
Copy link
Contributor

@mbrubeck mbrubeck commented Mar 14, 2018

This prevents generated files from ending up in the source directory where they may be accidentally packaged or vendored. Closes #11.

@mbrubeck mbrubeck mentioned this pull request Mar 14, 2018
This prevents generated files from ending up in the source directory
where they may be accidentally packaged or vendored.
@@ -1,7 +1,9 @@
#[cfg_attr(rustfmt, rustfmt_skip)]
#[allow(unknown_lints)]
#[allow(clippy)]
mod grammar;
mod grammar {
include!(concat!(env!("OUT_DIR"), "/parser/grammar.rs"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: That would be nicer with an explanation.

@sgodwincs sgodwincs merged commit 57f85d3 into sgodwincs:master Mar 14, 2018
@sgodwincs
Copy link
Owner

Thanks!

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.

None yet

3 participants