Skip to content
New issue

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

Add pest_derive optional dependency #446

Open
kvark opened this issue Feb 27, 2020 · 3 comments
Open

Add pest_derive optional dependency #446

kvark opened this issue Feb 27, 2020 · 3 comments

Comments

@kvark
Copy link

kvark commented Feb 27, 2020

Would be good to avoid depending on both pest and pest_derive, just for convenience. Just like Serde, pest with pest_derive feature could re-export the macros.

@hellow554
Copy link

hellow554 commented Sep 28, 2021

This is something I wanted since I started using pest.
The problem is, that everything (derive, generator and meta) depends on pest. That's a problem, because if you start including pest_derive in pest you'll get a cyclic depency.

It would be nice if somebody could restructure the crates so they don't depend on pest anymore.

@syddo
Copy link

syddo commented Feb 6, 2022

i'm seeing an error "unresolved extern crate, can't find crate for pest_derive can't find crate"
in pest version 2.1.3 using the example in its documentation.

am i missing something?
Screen Shot 2022-02-06 at 9 46 42 AM

@dunkyl
Copy link

dunkyl commented Jul 4, 2024

@syddo super late, but, I got the same issue. It was fixed by specifying the Rust edition in Cargo.toml (edition = "2021" under [package])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants