We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pest
#[grammar = "..."]
#[macro_use] extern crate pest_derive;
As in subject, I understood that with Rust 2018:
should not be required anymore, as reported here: https://rust-lang-nursery.github.io/edition-guide/rust-2018/macros/macro-changes.html
However, without that statement, the following code fails to compile:
#[derive(Parser)] #[grammar = "csv.pest"] pub struct CSVParser;
with error:
error[E0658]: The attribute grammar is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
grammar
The text was updated successfully, but these errors were encountered:
Did you
use pest_derive::Parser;
?
Sorry, something went wrong.
Sorry, I just did:
use pest::Parser;
Thanks for your hint
No branches or pull requests
As in subject, I understood that with Rust 2018:
should not be required anymore, as reported here:
https://rust-lang-nursery.github.io/edition-guide/rust-2018/macros/macro-changes.html
However, without that statement, the following code fails to compile:
with error:
The text was updated successfully, but these errors were encountered: