You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The quickchecking crate, for property testing with fuzzed C headers, has some special casing so that known issues (#550, #684, and #1153) don't cause the property tests to fail. That special casing could be handled with a feature in the crate's Cargo.toml file and some cfg attributes in the source.
Enable Cargo features for quickchecking crate
Logic to enable/disable special casing (due to known issues #550, #684, and #1153) has been exposed as features in the `quickchecking` crate's Cargo.toml file and corresponding `cfg` attributes in the source.
In addition to adding Cargo features, this PR represents the following:
- Documentation in `bindgen`'s CONTRIBUTING.md that points to a new README.md located in the `quickchecking` crate's directory.
- The Debug trait was implemented for the `HeaderC` type. This enables failing property tests to be reported as C source code rather than a Rust data structure.
- The ArrayDimensionC type is now used in header generation for union, struct, and basic declarations.
Thanks for taking a look and for any feedback!
Closes#1169
r? @fitzgen
The
quickchecking
crate, for property testing with fuzzed C headers, has some special casing so that known issues (#550, #684, and #1153) don't cause the property tests to fail. That special casing could be handled with a feature in the crate'sCargo.toml
file and somecfg
attributes in the source.Corresponds to extending #970
quickchecking
crate lives in the tests directory here: https://github.com/rust-lang-nursery/rust-bindgen/tree/master/tests/quickcheckingThe text was updated successfully, but these errors were encountered: