pest-parser / pest

The Elegant Parser
https://pest.rs
Apache License 2.0
4.64k stars 260 forks source link

Add pest_derive optional dependency #446

Open kvark opened 4 years ago

kvark commented 4 years ago

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 commented 3 years ago

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 commented 2 years ago

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 commented 4 months ago

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