summaryrefslogtreecommitdiff
path: root/src/callbacks.rs
AgeCommit message (Collapse)Author
2022-10-04split the repo into a workspaceChristian Poveda
remove `clap` dependency :tada: update the book installation instructions
2021-07-16add custom derives callbackEric Seppanen
This callback allows us to specify arbitrary derive attributes for each named struct. This is useful for adding things that can't easily be implemented separately, such as `serde::Deserialize` or `zerocopy::FromBytes`.
2021-03-22Add callback to check derives for blocklisted typesJethro Beekman
Fixes #1454 #2003
2020-06-21Generate func_macro callbacksDarren Kulp
2020-06-21Introduce func_macro to ParseCallbacks traitDarren Kulp
2020-04-27Run `cargo fix --edition`Joshua Nelson
2019-10-08Add ParseCallbacks handler for included fileschrysn
As the clang_File_tryGetRealPathName function is only exposed by clang_sys for clang >= 7.0, this raises the clang dependency. Closes: https://github.com/rust-lang/rust-bindgen/issues/1635 The book example code for creating a builder to run inside Cargo is extended by using the rereun-if-changed headers.
2019-09-17Rustfmt.Emilio Cobos Álvarez
2018-11-26callbacks: Allow reporting string macroschrysn
There is no useful action to take on those, but receiving their values (to re-export them as cfg() options) would be helpful right now in integrating with RIOT's build system.
2018-11-10Add item_name parse callback.Sébastien Duquette
2018-06-13Fix typos.Bruce Mitchener
2018-03-04ir: Allow renaming variants using the replaces="" annotation or a custom ↵Emilio Cobos Álvarez
callback.
2018-01-31callbacks: Introduce MacroParsingBehavior to allow ignoring macros.Emilio Cobos Álvarez
This is symmetric, yet less powerful, than enum_variant_behavior. Fixes #687.
2017-08-21Rename `TypeKind::Named` to `TypeKind::TypeParam`Anna Liao
Also renames a bunch of other things referring to named types to refer to type parameters. Fixes #915
2017-03-17Renamed chooser to visitor and added function for parsed macro analysis.Adam Baxter
Added tests and fixed missed function rename. Fixed nits Renamed visitor to callbacks. Renamed visitor to callbacks. Renamed visitor to callbacks. Fixed text.