We must compile C lemon and run it on grammar file(s) to generate rust parser(s).
So if we want to distribute (deploy) this crate, we must either:
push generated files into this git repository,
our introduce a build.rs script.
But cc does not support C executable. We can still use cc with a workaroud but if we do, the crate cannot be cross-compiled anymore.
We must compile C
lemon
and run it on grammar file(s) to generate rust parser(s). So if we want to distribute (deploy) this crate, we must either:build.rs
script. Butcc
does not support C executable. We can still usecc
with a workaroud but if we do, the crate cannot be cross-compiled anymore.https://github.com/alexcrichton/cc-rs/issues/458 https://github.com/alexcrichton/cc-rs/issues/63