Skip to content

Commit 933d4be

Browse files
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

File tree

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ required-features = ["bot-profiles", "hand-histories", "player-stats"]
110110
name = "player_stats_session"
111111
required-features = ["bot-profiles", "hand-histories", "player-stats-persistence"]
112112

113+
[[example]]
114+
name = "exploitative_play"
115+
required-features = ["bot-profiles", "player-stats"]
116+
113117
[[example]]
114118
name = "train_exploit_config"
115119
required-features = ["bot-training"]
@@ -138,6 +142,10 @@ required-features = ["bot-profiles", "hand-histories", "player-stats"]
138142
name = "player_stats_persistence"
139143
required-features = ["bot-profiles", "hand-histories", "player-stats-persistence"]
140144

145+
[[test]]
146+
name = "exploitative_play_smoke"
147+
required-features = ["bot-profiles", "player-stats"]
148+
141149
[[test]]
142150
name = "training_integration"
143151
required-features = ["bot-training"]

0 commit comments

Comments
 (0)