-
Notifications
You must be signed in to change notification settings - Fork 129
feat: wdk_build::DerivesMap for derives collection of bindgen output
#652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
14eb60e
6a5371c
30b7ca9
d4aea8d
ff10314
f7f194e
d7ca70a
f119754
a152f49
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -138,6 +138,9 @@ impl BuilderExt for Builder { | |
| // Defaults enums to generate as a set of constants contained in a module (default value | ||
| // is EnumVariation::Consts which generates enums as global constants) | ||
| .default_enum_style(bindgen::EnumVariation::ModuleConsts) | ||
| // `size_t`/`ssize_t` are pointer-width on every supported Windows | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should not be needed since afaiu this is true by default
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is true by default but I am pinning it because in case that default value changes -- is it ok to keep? |
||
| // driver target (x64, ARM64, x86), matching Rust's `usize`/`isize`. | ||
| .size_t_is_usize(true) | ||
| .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) | ||
| .parse_callbacks(Box::new(WdkCallbacks::new(config))) | ||
| .formatter(bindgen::Formatter::Prettyplease) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.