Skip to content

Proof-of-concept for RustRover not recognizing which feature flags are used

Notifications You must be signed in to change notification settings

bes/rustrover-crate-dep-feature-flags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proof-of-concept for broken feature flag detection

In project2/crates/crate1/lib.rs there is a struct HasFieldsWithFeatureFlags which has a field only_feat_1 that is only available if the feature feat1 is turned on, but RustRover doesn't understand that the feature isn't turned on in project1/src/lib.rs and says

Missing field in `HasFieldsWithFeatureFlags` initializer: `only_feat_1`

Which it shouldn't do because the feature isn't turned on.

About

Proof-of-concept for RustRover not recognizing which feature flags are used

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages