summaryrefslogtreecommitdiff
path: root/pest_consume
diff options
context:
space:
mode:
authorNadrieril2019-09-10 15:42:11 +0200
committerNadrieril2019-09-10 15:42:11 +0200
commit20e75122354dc44468fa58c40e94a43a128aa764 (patch)
tree3625ed64f60e915c32aa9fbd68ed00135488babb /pest_consume
parente4003cc25efcae79c1332e3481d7edfca1067c4f (diff)
Use proc_macro_hack to avoid the need for the proc_macro_hygiene feature
Diffstat (limited to 'pest_consume')
-rw-r--r--pest_consume/Cargo.toml1
-rw-r--r--pest_consume/src/lib.rs4
2 files changed, 4 insertions, 1 deletions
diff --git a/pest_consume/Cargo.toml b/pest_consume/Cargo.toml
index 7b26d56..70bdd22 100644
--- a/pest_consume/Cargo.toml
+++ b/pest_consume/Cargo.toml
@@ -10,4 +10,5 @@ repository = "https://github.com/Nadrieril/dhall-rust"
[dependencies]
pest = "2.1"
+proc-macro-hack = "0.5.9"
pest_consume_macros = { path = "../pest_consume_macros" }
diff --git a/pest_consume/src/lib.rs b/pest_consume/src/lib.rs
index 1579f81..439effb 100644
--- a/pest_consume/src/lib.rs
+++ b/pest_consume/src/lib.rs
@@ -3,7 +3,9 @@ use pest::iterators::{Pair, Pairs};
use pest::Parser as PestParser;
use pest::{RuleType, Span};
-pub use pest_consume_macros::{make_parser, match_inputs};
+pub use pest_consume_macros::make_parser;
+#[proc_macro_hack::proc_macro_hack]
+pub use pest_consume_macros::match_inputs;
static UNIT: () = ();