summaryrefslogtreecommitdiff
path: root/dhall_generated_parser/src/lib.rs
diff options
context:
space:
mode:
authorNadrieril2019-09-10 15:43:24 +0200
committerNadrieril2019-09-10 16:38:28 +0200
commit83ca228b1b0d3c40d2a1998dde45ecfef6fa0bb7 (patch)
tree83f41047f7505282c0fb11994df8d3391662fe41 /dhall_generated_parser/src/lib.rs
parent20e75122354dc44468fa58c40e94a43a128aa764 (diff)
Tentatively derive pest::Parser normally
If it still creates spurious recompilations, I'll revert that
Diffstat (limited to 'dhall_generated_parser/src/lib.rs')
-rw-r--r--dhall_generated_parser/src/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/dhall_generated_parser/src/lib.rs b/dhall_generated_parser/src/lib.rs
index 280b75e..fbb9ccd 100644
--- a/dhall_generated_parser/src/lib.rs
+++ b/dhall_generated_parser/src/lib.rs
@@ -14,4 +14,9 @@
// additional overrides are done in ../build.rs.
// The lines that are commented out in ./dhall.pest.visibility are marked as
// silent (see pest docs for what that means) in the generated pest file.
-include!(concat!(env!("OUT_DIR"), "/grammar.rs"));
+
+use pest_derive::Parser;
+
+#[derive(Parser)]
+#[grammar = "dhall.pest"]
+pub struct DhallParser;