[−][src]Crate codegenrs
codegenrs
Moving code-gen our of
build.rs
About
codegenrs
makes it easy to get rid of code-gen in build.rs
, reducing your
and dependents' build times. 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
[dependencies]
codegenners = "0.1"
structopt = "0.3"
imperative
example:
- output:
wordlist_codegen.rs
- generator:
imperative-codegen
- audit:
azure-pipelines.yml
Structs
CodeGenArgs | CLI arguments to |
RustfmtArgs | CLI arguments to |
Functions
rustfmt | Run |
write_str | Write or verify code-genned text. |