Commit f69aaa8
committed
[codegen] Break build dependency between tests and lib
Since codegen test artifacts are rendered in crate documentation,
changes to those artifacts place the crate source in a dirty state.
This effectively serializes codegen blessing, since cargo must rebuild
`zerocopy` between each test. We correct this by stubbing out
`codegen_section!` when `cfg(not(doc))`.
Makes progress towards #3079.
gherrit-pr-id: Gcf771ba083fd307e788ceb72bc09085177a48ca81 parent c184959 commit f69aaa8
1 file changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
982 | 982 | | |
983 | 983 | | |
984 | 984 | | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
985 | 1013 | | |
986 | 1014 | | |
| 1015 | + | |
987 | 1016 | | |
988 | 1017 | | |
989 | 1018 | | |
| |||
0 commit comments