igordejanovic / rustemo

LR/GLR parser generator for Rust https://igordejanovic.github.io/rustemo/
Apache License 2.0
32 stars 3 forks source link

Generated code refers to `once_cell` and `colored` #15

Closed andrewbaxter closed 2 weeks ago

andrewbaxter commented 1 month ago

Describe the bug The generated code refers to modules once_cell and colored that might not be dependencies of the consuming project. Since the user may never use these crates directly, they shouldn't be required to import them either.

FWIW I think it's common to republish the dependencies used by generated code and have the generated code refer to them within the republished namespace.

igordejanovic commented 1 month ago

Thanks. Republishing seems like a good idea. That would bring dependencies to rustemo crate only. I'll look into it.