Commit f1a3c13
committed
Run the adapter's feature-gated configuration in CI
The `memory-git` feature added alongside the lifted diff family gates that
family, and the test asserting it is *withheld* without the feature is
`#[cfg(not(feature = "memory-git"))]`. Both existing jobs — `--all-features`
and default — compile that test out, so it was checked by nothing: a
feature-gated test whose default fate is to be built by one job and executed
by none.
Adds the configuration as its own step, and asserts the property the feature
exists for: `cargo tree --no-default-features` must link no `git2` or
`libgit2-sys`. A guard rather than a comment, because "this feature keeps the
native build out of the graph" is a claim that silently stops being true the
first time a dependency picks it up transitively.
Verified: `diff_is_withheld_when_the_snapshot_store_is_compiled_out` appears in
`--no-default-features -- --list` and is absent from the `--all-features`
listing, which is what "running nowhere" looked like.
Refs #18 (§C3, §E2)1 parent 4ab4d55 commit f1a3c13
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
52 | 76 | | |
53 | 77 | | |
54 | 78 | | |
| |||
0 commit comments