Repository navigation
Commit bc8c4e3
committed
Build the examples generator only where it can compile
`cargo test --workspace --no-default-features` builds every target in the
workspace, examples included, and the examples generator asks for
`textprocessing::examples` -- a module behind `#[cfg(all(feature =
"chinese", feature = "korean"))]`, because it renders the whole transform
table in one pass and needs both dictionaries to do it. With the features
off the module is not there and the example does not compile, so `site
check` fails at the test step.
Nothing was wrong with either side: the module is gated because the
dictionaries are 13 MB and CI has no use for them, and the example needs
them because that is what it renders. What was missing is the line that
says so to cargo. `required-features` makes it skip the target rather than
try to build it, which is the same thing `site textprocessing-examples`
was already relying on by running with default features on.
It fails only in CI, and only in the no-default-features build, which is
why a workspace test run here has been green throughout.1 parent 2ff098c commit bc8c4e3
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
0 commit comments