codegenrs
Moving code-gen out of our
build.rs
About
codegenrs
makes it easy to get rid of code-gen in build.rs
, reducing build times for your crate and those that depend on it
This is done by:
- Creating a child
[[bin]]
crate that does code-gen usingcodegenrs
- Do one-time code-gen and commit it
- Run the
--check
step in your CI to ensure your code-gen is neither out of date or been human edited.
Usage
imperative
example:
- output:
wordlist_codegen.rs
- generator:
imperative-codegen
Contribute
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.