From 20e75122354dc44468fa58c40e94a43a128aa764 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Tue, 10 Sep 2019 15:42:11 +0200 Subject: Use proc_macro_hack to avoid the need for the proc_macro_hygiene feature --- pest_consume/Cargo.toml | 1 + pest_consume/src/lib.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'pest_consume') 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: () = (); -- cgit v1.2.3