Skip to content

Commit e98ed72

Browse files
committed
Cargo: gate codec_mode_histogram example behind required-features=["codec"]
Addresses codex P1 (#229): the example imports hpc::codec, which is not a default feature. Without a [[example]] required-features entry, default cargo test (which builds examples) would try to compile it without --features codec and fail resolving hpc::codec. Now default builds skip the target; --features codec builds it. Matches the sibling-example convention. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MLBnPuScZy6w9di2QEjsXM
1 parent 98d8515 commit e98ed72

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ required-features = ["std"]
7979
name = "edge_codec_compare"
8080
required-features = ["std"]
8181

82+
[[example]]
83+
name = "codec_mode_histogram"
84+
required-features = ["codec"]
85+
8286
[[example]]
8387
name = "entropy_ladder_probe"
8488
required-features = ["std"]

0 commit comments

Comments
 (0)