#development #codegen

dev codegenrs

Moving code-gen our of build.rs

8 releases (2 stable)

2.0.0 Feb 1, 2022
1.0.0 Feb 1, 2021
0.1.5 Oct 6, 2019
0.1.0 Sep 28, 2019

#2046 in Development tools

Download history 51/week @ 2023-01-18 42/week @ 2023-01-25 112/week @ 2023-02-01 75/week @ 2023-02-08 62/week @ 2023-02-15 129/week @ 2023-02-22 130/week @ 2023-03-01 320/week @ 2023-03-08 225/week @ 2023-03-15 264/week @ 2023-03-22 294/week @ 2023-03-29 129/week @ 2023-04-05 165/week @ 2023-04-12 194/week @ 2023-04-19 160/week @ 2023-04-26 175/week @ 2023-05-03

721 downloads per month
Used in 5 crates

MIT/Apache

9KB
84 lines

codegenrs

Moving code-gen out of our build.rs

codecov Documentation License Crates Status

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 using codegenrs
  • 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:

Contribute

License

Licensed under either of

at your option.

Dependencies

~1.8–2.4MB
~47K SLoC