gwenn / lemon-rs

LALR(1) parser generator for Rust based on Lemon + SQL parser
The Unlicense
48 stars 10 forks source link

Build script #13

Closed gwenn closed 3 years ago

gwenn commented 3 years ago

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:

  1. push generated files into this git repository,
  2. 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.

https://github.com/alexcrichton/cc-rs/issues/458 https://github.com/alexcrichton/cc-rs/issues/63