Skip to content

Why .gitignore meta/src/grammar.rs? #558

Answered by CAD97
NoahTheDuke asked this question in Q&A
Discussion options

You must be logged in to vote

The general reason is that generally, you shouldn't put generated files in source control.

But more generally, the bootstrap system is quite messy. Previously, pest@2 used pest@1 for its grammar, IIRC. I'm the one who set up the current bootstrap to avoid the cyclic requirement. The ultimate goal is that crates-io users don't have to build more than one pest, but we can still dogfood by using crates-io pest to develop the next release of pest.

I've played on-and-(mostly)-off with a way of "properly" solving the bootstrap problem (specifically for the case of using watt to drive proc macro crates). The ideal is that cargo build just works, but more importantly, that the two library-user us…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NoahTheDuke
Comment options

NoahTheDuke Oct 21, 2021
Maintainer Author

Answer selected by CAD97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants