summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-09-26 12:26:23 +0200
committerJustus Winter <justus@sequoia-pgp.org>2018-09-26 12:26:23 +0200
commit1c6b7bccdfdcbfcf1e0711a98d607cd6804717bc (patch)
tree80054c68bb55665401ec5096628736c7ac941fd5
parentc2a1f81a412ea3b743cbbb4e715d6166f1338e92 (diff)
openpgp: Include the lalrpop-generated code.
- Previously, lalrpop wrote the generated code into the source directory. This changed with the new version. - Fixes #109. - Fixes 926157cc7ee13c4953dec8df9b2452fe2e3c05ae.
-rw-r--r--.gitignore2
-rw-r--r--openpgp/src/message/grammar.rs2
-rw-r--r--openpgp/src/tpk/grammar.rs2
3 files changed, 4 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index b790edcf..353b1eb7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,5 +3,3 @@
*~
Cargo.lock
.gdb_history
-/openpgp/src/message/grammar.rs
-/openpgp/src/tpk/grammar.rs
diff --git a/openpgp/src/message/grammar.rs b/openpgp/src/message/grammar.rs
new file mode 100644
index 00000000..d06eccfa
--- /dev/null
+++ b/openpgp/src/message/grammar.rs
@@ -0,0 +1,2 @@
+// Include the generated code.
+include!(concat!(env!("OUT_DIR"), "/message/grammar.rs"));
diff --git a/openpgp/src/tpk/grammar.rs b/openpgp/src/tpk/grammar.rs
new file mode 100644
index 00000000..8461e209
--- /dev/null
+++ b/openpgp/src/tpk/grammar.rs
@@ -0,0 +1,2 @@
+// Include the generated code.
+include!(concat!(env!("OUT_DIR"), "/tpk/grammar.rs"));