Replies: 6 comments
-
adding |
Beta Was this translation helpful? Give feedback.
-
Does the |
Beta Was this translation helpful? Give feedback.
-
What's happening here is that the derive is trying to find its items in your @Proximyst what edition are you compiling in? This should not be able to happen in edition=2018. Due to the way proc-macros work, pest requires that the path |
Beta Was this translation helpful? Give feedback.
-
Your suggestion works, @CAD97. I'm using 2018 edition; rustc 1.40.0-nightly (87cbf0a54 2019-11-01). |
Beta Was this translation helpful? Give feedback.
-
Any word on this? This should be solvable by prepending Here's another workaround, if you're in a pub use pest::{error, iterators, state, ParseResult, ParserState}; |
Beta Was this translation helpful? Give feedback.
-
I discovered this was for 2 reasons: 1) there was a typo in the .pest file that made the proc crash causing a compiler error; and 2) you need `#[derive(pest_derive::Parser)] to Hy-Vee Consumer Survey it from pest::Parser. |
Beta Was this translation helpful? Give feedback.
-
With
src/pest.rs
having:on
pest_derive v2.1.0
andpest v2.1.0
/pest v2.1.2
(same error on both versions), it returns the following errors:This miiight be related to #129
Beta Was this translation helpful? Give feedback.
All reactions