summaryrefslogtreecommitdiff
path: root/pest_consume
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pest_consume/Cargo.toml1
-rw-r--r--pest_consume/src/lib.rs4
-rw-r--r--pest_consume_macros/Cargo.toml1
-rw-r--r--pest_consume_macros/src/lib.rs2
4 files changed, 6 insertions, 2 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: () = ();
diff --git a/pest_consume_macros/Cargo.toml b/pest_consume_macros/Cargo.toml
index dd65d95..317fd29 100644
--- a/pest_consume_macros/Cargo.toml
+++ b/pest_consume_macros/Cargo.toml
@@ -15,4 +15,5 @@ doctest = false
[dependencies]
quote = "1.0.2"
proc-macro2 = "1.0.2"
+proc-macro-hack = "0.5.9"
syn = { version = "1.0.5", features = ["full", "extra-traits"] }
diff --git a/pest_consume_macros/src/lib.rs b/pest_consume_macros/src/lib.rs
index b5368ec..3929974 100644
--- a/pest_consume_macros/src/lib.rs
+++ b/pest_consume_macros/src/lib.rs
@@ -19,7 +19,7 @@ pub fn make_parser(attrs: TokenStream, input: TokenStream) -> TokenStream {
})
}
-#[proc_macro]
+#[proc_macro_hack::proc_macro_hack]
pub fn match_inputs(input: TokenStream) -> TokenStream {
TokenStream::from(match match_inputs::match_inputs(input) {
Ok(tokens) => tokens,