Skip to content

Commit a66e8f2

Browse files
0xrinegadeclaude
andcommitted
fix: add incomplete_tests feature to Cargo.toml for test cfg checks
Properly fixes the unexpected cfg warning by declaring the incomplete_tests feature flag that multiple test files reference. ## Changes - Added `incomplete_tests = []` to [features] section in Cargo.toml - Removed temporary `#![allow(unexpected_cfgs)]` workaround from lib.rs - Feature flag allows test files to use `#[cfg(feature = "incomplete_tests")]` to conditionally exclude unfinished tests without warnings ## Impact - ✅ Resolves unexpected cfg warnings for 18 test files - ✅ Tests can now use `--features incomplete_tests` to enable experimental tests - ✅ CI builds pass without cfg warnings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent a33fae4 commit a66e8f2

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ proptest = "1.5.0"
107107
[features]
108108
default = []
109109
remote-wallet = ["solana-remote-wallet"]
110+
incomplete_tests = [] # Feature flag for incomplete/experimental test files
110111

111112
[[bin]]
112113
name = "osvm-bootstrap"

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
// Allow clippy warnings for this codebase since it's under active development
2222
#![allow(clippy::all)]
2323
#![allow(unused)]
24-
#![allow(unexpected_cfgs)]
2524

2625
pub mod clparse;
2726
pub mod commands;

0 commit comments

Comments
 (0)