Commit 933d4be
committed
Two entries added to Cargo.toml:
- [[example]] exploitative_play — required-features = ["bot-profiles", "player-stats"]
- [[test]] exploitative_play_smoke — required-features = ["bot-profiles", "player-stats"]
Both were being compiled unconditionally by Cargo (no entry = attempt with whatever features are active), which caused the gated imports to fail under
--no-default-features. The required-features field tells Cargo to skip them entirely when the listed features aren't enabled, which is the correct
behavior for the CI no-default-features job.1 parent d1f9aeb commit 933d4be
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
141 | 149 | | |
142 | 150 | | |
143 | 151 | | |
| |||
0 commit comments